snok / flake8-type-checking

Flake8 plugin for managing type-checking imports & forward references.
BSD 3-Clause "New" or "Revised" License
113 stars 16 forks source link

Add failing test #161

Closed sondrelg closed 1 year ago

sondrelg commented 1 year ago

Closes #160

Prevents false positive TC004 errors when an import name is shadowed by function arguments.

olepbr commented 1 year ago

Not overly familiar with the codebase, but the change makes sense to me :-)