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
stubtest crashes on class decorator in overloaded function #19689
Traceback (most recent call last):
File "/home/brian/Projects/open-contrib/mypy/.venv313/bin/stubtest", line 8, in <module>
sys.exit(main())
~~~~^^
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 2188, in mainreturn test_stubs(parse_options(sys.argv[1:]))
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 2042, in test_stubsfor error in test_module(module):
~~~~~~~~~~~^^^^^^^^
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 248, in test_moduleyield from verify(stub, runtime, [module_name])
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 427, in verify_mypyfileyield from verify(stub_entry, runtime_entry, object_path + [entry])
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 1206, in verify_overloadedfuncdef
stub_sig = Signature.from_overloadedfuncdef(stub)
File "/home/brian/Projects/open-contrib/mypy/mypy/stubtest.py", line 861, in from_overloadedfuncdefassert func isnotNone, "Failed to resolve decorated overload"^^^^^^^^^^^^^^^^AssertionError: Failed to resolve decorated overload
Reacted by Joren Hammudoglu and Stanislav Terliakov
Activity
stubtest: attempt to resolve decorators from the type
stubtest: attempt to resolve decorators from their type
stubtest: attempt to resolve decorators from their type
stubtest: attempt to resolve decorators from their type (#20867)