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
I found some examples (https://bugs.python.org/issue28936) of functions that have no signature annotations but contain local variable annotations. These are currently ignored. I think we should actually warn whenever an annotation (either a type comment or PEP 526 style) occurs in an unannotated function, since it likely reflects some kind of misunderstanding about annotations.
Or at the very least we should have an option to warn about such things.
(IIRC we recently doused a similar source of confusion, but I can't recall the details.)
The text was updated successfully, but these errors were encountered:
I found some examples (https://bugs.python.org/issue28936) of functions that have no signature annotations but contain local variable annotations. These are currently ignored. I think we should actually warn whenever an annotation (either a type comment or PEP 526 style) occurs in an unannotated function, since it likely reflects some kind of misunderstanding about annotations.
Or at the very least we should have an option to warn about such things.
(IIRC we recently doused a similar source of confusion, but I can't recall the details.)
The text was updated successfully, but these errors were encountered: