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 is because mypy processes definitions in order, and when it comes across create() in the first version it hasn't seen the __init__() signature yet. IIRC there's another issue open for this.
I've got a class which has a method that creates instances of the class.
When I run mypy against it, it says
mypytest.py:4: error: Too many arguments for "Bar"
It seems like a bug to me, because this works fine
I don't understand why a class method which defines the type of a parameter should break the creation of an instance.
(see https://stackoverflow.com/q/47493293/8384 )
The text was updated successfully, but these errors were encountered: