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
#9195 appears to have fixed #9193 for generic functions but not for generic classes:
""" Module Docstring """ from collections.abc import Callable class CallableWrapper[**P, T]: """Class Docstring""" def __init__(self, __callable: Callable[P, T]) -> None: self.callable = __callable def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T: return self.callable(*args, **kwargs)
pylint pylint_undefined_variable.py
************* Module pylint_E0602 ************* Module pylint_undefined_variable pylint_undefined_variable.py:10:44: E0602: Undefined variable 'P' (undefined-variable) pylint_undefined_variable.py:10:47: E0602: Undefined variable 'T' (undefined-variable) pylint_undefined_variable.py:13:30: E0602: Undefined variable 'P' (undefined-variable) pylint_undefined_variable.py:13:48: E0602: Undefined variable 'P' (undefined-variable) pylint_undefined_variable.py:13:61: E0602: Undefined variable 'T' (undefined-variable) pylint_undefined_variable.py:7:0: R0903: Too few public methods (1/2) (too-few-public-methods)
No E0602: Undefined Variable errors.
pylint 3.3.1 astroid 3.3.5 Python 3.12.7 (heads/main:466d8c8, Oct 15 2024, 03:59:42) [GCC 13.3.0]
Rocky Linux 8
The text was updated successfully, but these errors were encountered:
Duplicate of #9335
Sorry, something went wrong.
No branches or pull requests
Bug Description:
#9195 appears to have fixed #9193 for generic functions but not for generic classes:
Command Used
pylint pylint_undefined_variable.py
Pylint Output
Expected Behavior
No E0602: Undefined Variable errors.
Pylint Version
pylint 3.3.1
astroid 3.3.5
Python 3.12.7 (heads/main:466d8c8, Oct 15 2024, 03:59:42) [GCC 13.3.0]
OS/Environment
Rocky Linux 8
The text was updated successfully, but these errors were encountered: