You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This came up in #4302 most recently but has been a common issue at Dropbox as well. At Dropbox we have custom lint hacks to make linters not complain about imports only used within type comments, but they aren't publicly available, as far as I know.
@tjerkw I didn't work on that fix, but I have a vague recollection about adding a linter pass that looks for type comments and adds dummy references to every name used in a type comment to the end of the source file before actual linting. @gvanrossum may know more.
This is a common issue for people using type comments:
# noqa
helps with flake8 (and maybe other linters):Document this is common issues.
The text was updated successfully, but these errors were encountered: