New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B027 and typing.overload #308
Comments
B027 checks for but since you did |
Ah okay makes sense, I didn't know this kind of details mattered, I thought the imports were evaluated |
Typecheckers evaluate imports, but AST checkers like flake8 usually don't try and just looks at identifiers hoping/assuming they're well-named. (afaik) Anyway, fixed with #309 - forgot to mention this issue in it. |
So, is this fine to be closed now? |
yep! |
Consider the following:
The overloads of
bar
are considered as "real" methods and B027 warning is emitted:Is it worth not emitting the warning when typing.overload is used or is it a case that should be supressed manually with
# noqa
?The text was updated successfully, but these errors were encountered: