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
λ cat hm.pyi from typing import Generic, TypeVar _KT = TypeVar("_KT") # Key type. _VT = TypeVar("_VT") # Value type. class M1(Generic[_KT, _VT]): def pop(self, __key: _KT, default: _VT) -> _VT: ... class M2(Generic[_KT, _VT]): def pop(self, key: _KT, /, default: _VT) -> _VT: ... λ flake8 hm.pyi hm.pyi:11:32: Y019 Use "_typeshed.Self" instead of "_VT", e.g. "def pop(self, key: _KT, /, default: Self) -> Self: ..."
Looks like logic for determining first parameter isn't correct
The text was updated successfully, but these errors were encountered:
Fix Y019 for PEP 570 syntax
5cf4ee4
Fixes PyCQA#455
Fix Y019 for PEP 570 syntax (#456)
bbb152e
Fixes #455
Successfully merging a pull request may close this issue.
Looks like logic for determining first parameter isn't correct
The text was updated successfully, but these errors were encountered: