Skip to content

Annotated module level constant not checked for invalid-name #9770

Open
@jacobtylerwalls

Description

Originally reported by @mbyrnepr2 in #7232 (comment).

Bug description

"""should raise invalid-name"""
my_var: int = 1

Configuration

No response

Command used

pylint a.py

Pylint output

% pylint x.py

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 0.00/10, +10.00)

Expected behavior

invalid-name

Pylint version

pylint 3.3.0-dev0
astroid 3.3.0-dev0
Python 3.13.0b3

OS / Environment

No response

Additional dependencies

No response

Metadata

Labels

C: invalid-nameFalse Negative 🦋No message is emitted but something is wrong with the codeNeeds triage 📥Just created, needs acknowledgment, triage, and proper labelling

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions