Instagram / Fixit

Advanced Python linting framework with auto-fixes and hierarchical configuration that makes it easy to write custom in-repo lint rules.
https://fixit.rtfd.io/en/latest/
Other
666 stars 62 forks source link

More robust typing literal handling #400

Closed amyreese closed 10 months ago

amyreese commented 10 months ago

Stack from ghstack (oldest at bottom):

Includes typing.Literal in the checks, adds a test case, and wraps the call to parse_expression in a try/except just in case.

Fix #377