Skip to content

Starting from pyling 4.0.0 we get C0103 errors on naming for typing typedefs #10672

@baruchoxman

Description

@baruchoxman

Bug description

Here's example.py


MyExampleType = typing.TypedDict(
    "MyExampleType",
    {
        "some_field": str,
    },
)
_ParamT = typing.ParamSpec("_ParamT")

Error:
example.py:22:0: C0103: Constant name "MyExampleType" doesn't conform to UPPER_CASE naming style (invalid-name)
example.py:42:0: C0103: Parameter specification variable name "_ParamT" doesn't conform to predefined naming style (invalid-name)

Configuration

Command used

pylint example.py

Pylint output

example.py:22:0: C0103: Constant name "MyExampleType" doesn't conform to UPPER_CASE naming style (invalid-name)
example.py:42:0: C0103: Parameter specification variable name "_ParamT" doesn't conform to predefined naming style (invalid-name)

Expected behavior

I would not want to get these errors

Pylint version

pylint 4.0.1
astroid 4.0.1
python 3.12.11

OS / Environment

No response

Additional dependencies

Metadata

Metadata

Labels

C: invalid-nameFalse Positive 🦟A message is emitted but nothing is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions