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
{{ message }}
Repository navigation
mypy doesn't seem to enforce instance attributes Dict types #6986
This is a funny one. The problem is that you don't import Dict. Moreover __init__ doesn't have any annotations, so errors aren't reported there, see PEP 484.
You can use --disallow-untyped-defs to avoid such mistakes in future, or alternatively --warn-return-any to warn you when type checking passes because the thing you return is Any.
Activity
ilevkivskyi commentedon Jun 13, 2019
This is a funny one. The problem is that you don't import
Dict. Moreover__init__doesn't have any annotations, so errors aren't reported there, see PEP 484.You can use
--disallow-untyped-defsto avoid such mistakes in future, or alternatively--warn-return-anyto warn you when type checking passes because the thing you return isAny.