Skip to content

The metaclass property takes precedence over class attributes. - #22397

Open
zedzhen wants to merge 1 commit into
python:masterfrom
zedzhen:fix-7945
Open

zedzhen wants to merge 1 commit into
python:masterfrom
zedzhen:fix-7945

Conversation

@zedzhen

@zedzhen zedzhen commented Nov 8, 2026

Copy link
Copy Markdown

Fixes #7945

When accessing a class (not an instance), the properties of the metaclass take precedence.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pandera (https://github.com/pandera-dev/pandera)
+ pandera/engines/polars_engine.py:1136: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1498: error: Unused "type: ignore" comment  [unused-ignore]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metaclass confusion with properties

1 participant