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
If a function takes no arguments (or only self) and --disallow-untyped-defs is enabled, the error message "Function is missing a type annotation" is not very helpful. Here's an idea for a better message:
foo.py:2: error: Function must have a return type annotation ('disallow_untyped_defs' enabled)
foo.py:2: note: Use "-> None" if function does not return a value
The error message could be further specialized for __init__.
If a function takes no arguments (or only
self
) and--disallow-untyped-defs
is enabled, the error message "Function is missing a type annotation" is not very helpful. Here's an idea for a better message:The error message could be further specialized for
__init__
.See #5943 for a related issue.
The text was updated successfully, but these errors were encountered: