We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This example has a bunch of errors that the semantic analyzer should probably report (and one what seems like a false positive):
from typing import NamedTuple, TypeVar, Generic from typing_extensions import Protocol from mypy_extensions import TypedDict @xyz # No error class N1(NamedTuple): x: int @xyz # No error class T1(TypedDict): x: int class N2(NamedTuple, Protocol): # No error x: int class T2(TypedDict, Protocol): # No error x: int class M(type): def f(cls) -> None: pass class N3(NamedTuple, metaclass=M): # No error x: int N3.f() # Error class T3(TypedDict, metaclass=M): # No error x: int T = TypeVar('T') class N4(NamedTuple, Generic[T]): # No error x: int class T4(TypedDict, Generic[T]): # No error x: int
The text was updated successfully, but these errors were encountered:
This one now (correctly) causes mypy to emit an error:
@xyz # error: Name "xyz" is not defined class T1(TypedDict): x: int
The others all continue to reproduce on 0.941.
Sorry, something went wrong.
No branches or pull requests
This example has a bunch of errors that the semantic analyzer should probably report (and one what seems like a false positive):
The text was updated successfully, but these errors were encountered: