deshaw / pyflyby

A set of productivity tools for Python
https://deshaw.github.io/pyflyby/
Other
347 stars 52 forks source link

Refactor in view of import sorting #331

Closed Carreau closed 5 months ago

Carreau commented 5 months ago

The parsing of statements is incorrect (comments statements soemtime start with a new line).

While trying to investigate why, try to simplify/annotate the code a bit, and type annotate it to detect inconsistency.

Also remove "optimisations" that assign attributes in top of cached property and make reasoning about the code a bit too hard.