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
class Updatable[T](ABC): """A record that can be updated with a new value.""" @abstractmethod def update(self, value: T) -> Self: """Update the record with a new value."""
Pylint reports the typevar T in value: T as an undefined variables
T
value: T
This should be a valid generic typing syntax since 3.12
[MESSAGES CONTROL] disable=too-many-arguments,too-few-public-methods,missing-module-docstring,missing-class-docstring,missing-function-docstring
pylint --rcfile=.pylintrc qcat
************* Module qcat.trading.core qcat/trading/core.py:38:28: E0602: Undefined variable 'T' (undefined-variable) ------------------------------------------------------------------ Your code has been rated at 9.86/10 (previous run: 8.99/10, +0.87)
T should be a valid typevar
pylint 3.2.2 astroid 3.2.2 Python 3.12.3 (main, Apr 23 2024, 09:16:07) [GCC 13.2.1 20240417]
### OS / Environment ArchLinux ### Additional dependencies _No response_
The text was updated successfully, but these errors were encountered:
Duplicate of #9335
Sorry, something went wrong.
No branches or pull requests
Bug description
Pylint reports the typevar
T
invalue: T
as an undefined variablesThis should be a valid generic typing syntax since 3.12
Configuration
Command used
Pylint output
Expected behavior
T
should be a valid typevarPylint version
The text was updated successfully, but these errors were encountered: