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
Classmethod bound with an additional name trigger stubtest errors #15717
error: mod.T.d variable differs from runtime type def () -> Any
Stub: in file /home/dalcinl/tmp/pkg/mod.pyi:6
def (cls: Type[mod.T])
Runtime: in file /tmp/mod.py:4
<bound method T.c of <class 'mod.T'>>
Found 1 error (checked 1 module)
Please note that the issue comes from a @classmethod, a regular method does not trigger the error.
Your Environment
Mypy version used: 1.4.1
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Activity