Skip to content

chore: rework if TYPE_CHECKING: blocks#2869

Closed
mayeut wants to merge 3 commits into
pypa:mainfrom
mayeut:type-checking3
Closed

chore: rework if TYPE_CHECKING: blocks#2869
mayeut wants to merge 3 commits into
pypa:mainfrom
mayeut:type-checking3

Conversation

@mayeut

@mayeut mayeut commented May 25, 2026

Copy link
Copy Markdown
Member

This is an alternative to #2866 as proposed in #2866 (comment).

The 1st commit is #2866, it enforces the use of if TYPE_CHECKING: blocks.
The 2nd commit revert #2864 as it's not needed as noted in #2866 (comment) and might borderline regarding standards (it's apparently not even though it works in practice)
The 3rd commit removes enforcing TC on tests as it's not likely useful there.

Marking as draft until there's a consensus between #2866 and this one.

@mayeut

mayeut commented May 26, 2026

Copy link
Copy Markdown
Member Author

close in favour of #2866

@mayeut mayeut closed this May 26, 2026
@mayeut mayeut deleted the type-checking3 branch May 29, 2026 18:57
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.

1 participant