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
pylint 2.13.3 is now compliant about C0103: Type variable name when using TypeVar
https://www.pythonsheets.com/notes/python-typing.html#using-typevar-and-generic-as-class-template
from typing import TypeVar CacheType = TypeVar("CacheType")
─○ cat a.py 1 │ from typing import TypeVar 2 │ 3 │ CacheType = TypeVar("CacheType") ╰─○ pylint a.py -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) ╰─○ pylint --version pylint 2.12.2 astroid 2.9.3 Python 3.9.6 (default, Aug 31 2021, 14:55:02) [Clang 12.0.5 (clang-1205.0.22.11)] ╰─○ pip install --upgrade pylint ... ... ╰─○ pylint --version pylint 2.13.3 astroid 2.11.2 Python 3.9.6 (default, Aug 31 2021, 14:55:02) [Clang 12.0.5 (clang-1205.0.22.11)] ╰─○ pylint a.py ************* Module a a.py:3:0: C0103: Type variable name "CacheType" doesn't conform to predefined naming style (invalid-name) ------------------------------------------------------------------- Your code has been rated at 5.00/10 (previous run: 10.00/10, -5.00) ╰─○ m
a.py:3:0: C0103: Type variable name "CacheType" doesn't conform to predefined naming style
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
pylint 2.13.3 astroid 2.11.2 Python 3.9.6 (default, Aug 31 2021, 14:55:02)
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting. FYI this was an intentional change, see discussion at #6003.
Sorry, something went wrong.
invalid-name
No branches or pull requests
Bug description
pylint 2.13.3 is now compliant about C0103: Type variable name when using TypeVar
https://www.pythonsheets.com/notes/python-typing.html#using-typevar-and-generic-as-class-template
Configuration
Command used
Pylint output
Expected behavior
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: