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
s.py:10: error: "Callable[[], Any]" has no attribute "__func__"
s.py:11: error: "Callable[[], Any]" has no attribute "__func__"
Found 2 errors in 1 file (checked 1 source file)
Your Environment
Mypy version used: 0.910
Mypy command-line flags: just file name
Mypy configuration options from mypy.ini (and other config files): none
The problem here is that we infer proccess to be just Callable with no extra metadata. Probably, we can change @staticmethod and @classmethod to be a protocol with __call__ and __func__ (and any other props).
Activity
sobolevn commentedon Sep 29, 2021
The problem here is that we infer
proccessto be justCallablewith no extra metadata. Probably, we can change@staticmethodand@classmethodto be a protocol with__call__and__func__(and any other props).@JelleZijlstra @hauntsaninja what do you think? 🤔