We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
protocol
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
test.py
from typing import Protocol import test2 class P(Protocol): def foo(self) -> None: ... a: P = test2 reveal_type(type(a).foo) # Revealed type is "def (self: test.P) -> None"
test2.py
def foo() -> None: ...
upstream: python/mypy#16890
The text was updated successfully, but these errors were encountered:
No branches or pull requests
test.py
test2.py
upstream: python/mypy#16890
The text was updated successfully, but these errors were encountered: