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
On the code below, mypy 0.620 (executed as mypy foo.py) under python 3.6.3 says:
foo.py:17: error: Too few arguments for "FR"
despite the fact that the code is fine. I expect no warnings.
fromtypingimportType, NamedTuple_FR=NamedTuple('_FR', [
('forward', str),
('reverse', str)
])
classFR(_FR):
def__new__(cls: Type['FR'], fw: str) ->'FR':
# The ignore on the next line works around a bug# reported as fixed https://github.com/python/typeshed/issues/2091## NOTE: it is still not fixed with # mypy-0.630+dev.b2d61741623f2a0573f2b1bdb8391ceed862cf69returnsuper().__new__(cls, fw, fw[::-1]) # type: ignoreprint(FR('stuff'))
I also tried executing with latest from git (mypy-0.630+dev.b2d61741623f2a0573f2b1bdb8391ceed862cf69) and the error persists.
The text was updated successfully, but these errors were encountered:
On the code below,
mypy
0.620 (executed asmypy foo.py
) under python 3.6.3 says:despite the fact that the code is fine. I expect no warnings.
I also tried executing with latest from
git
(mypy-0.630+dev.b2d61741623f2a0573f2b1bdb8391ceed862cf69
) and the error persists.The text was updated successfully, but these errors were encountered: