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
E AssertionError: error: test_module.f is inconsistent, stub argument "a" has a default value but runtime argument does not
E Stub: in file test_module.pyi:74
E Overload(def (a: builtins.int) -> builtins.int, def (builtins.int, builtins.str) -> builtins.str)
E Inferred signature: def (a: builtins.int = ..., a: builtins.int = ..., b: builtins.str = ...)
E Runtime: in file test_module.py:26
E def (a, *args)
I think this should produce no errors. In any case, stubtest's inferred signature is wrong (it repeats the a parameter).
Came up in python/typeshed#11595 where I am dealing with collections.ChainMap.fromkeys.
The text was updated successfully, but these errors were encountered:
The following test case:
fails with:
I think this should produce no errors. In any case, stubtest's inferred signature is wrong (it repeats the
a
parameter).Came up in python/typeshed#11595 where I am dealing with
collections.ChainMap.fromkeys
.The text was updated successfully, but these errors were encountered: