We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class A: pass class D(A): def __get__(a, b, c): return None # no error class C: d: A = D() reveal_type(A.d) # A, at runtime it will be None
But you should still be able to return something different if you aren't subtyping another class:
class A: def __get__(a, b, c): return None class C: a = A() reveal_type(C.a) # None
This would mean that FunctionType would not extend Callable,
FunctionType
Callable
types.FunctionType
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
But you should still be able to return something different if you aren't subtyping another class:
This would mean that
FunctionType
would not extendCallable
,Callable
type to not betypes.FunctionType
#614The text was updated successfully, but these errors were encountered: