Skip to content
Commit 32cb0cbe authored by Peter Law's avatar Peter Law Committed by Anthony Sottile
Browse files

Implement preservation of comments "within" typing classes

This ensures that comments which appear around TypedDicts and
NamedTuples that are converted to class style are preserved.
The layout of the comments in the new code isn't perfect, however
that's relatively easy for the user to fix manually afterwards.

Fixes https://github.com/asottile/pyupgrade/issues/497
Fixes https://github.com/asottile/pyupgrade/issues/634
Fixes https://github.com/asottile/pyupgrade/issues/697
parent 443bc1ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment