Skip to content

Avoid suggesting InitVar for __post_init__ that references PEP 695 type parameters#23226

Merged
charliermarsh merged 1 commit intomainfrom
charlie/post-init
Feb 11, 2026
Merged

Avoid suggesting InitVar for __post_init__ that references PEP 695 type parameters#23226
charliermarsh merged 1 commit intomainfrom
charlie/post-init

Conversation

@charliermarsh
Copy link
Member

Closes #19628.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 11, 2026
@charliermarsh charliermarsh marked this pull request as ready for review February 11, 2026 13:32
@charliermarsh charliermarsh added fixes Related to suggested fixes for violations and removed fixes Related to suggested fixes for violations labels Feb 11, 2026
@charliermarsh charliermarsh changed the title Avoid auto-fixing __post_init__ that references PEP 695 type parameters Avoid suggesting InitVar for __post_init__ that references PEP 695 type parameters Feb 11, 2026
@charliermarsh charliermarsh merged commit d200296 into main Feb 11, 2026
43 checks passed
@charliermarsh charliermarsh deleted the charlie/post-init branch February 11, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUF033 fix introduces an error for a type variable scoped to __post_init__

1 participant