Skip to content

Conversation

radarhere
Copy link
Member

Inspired by #9119, this moves some type hint related imports within if TYPE_CHECKING

@hugovk hugovk changed the title Moved imports into TYPE_CHECKING Move imports into TYPE_CHECKING Aug 2, 2025
@hugovk hugovk merged commit eb59176 into python-pillow:main Aug 2, 2025
54 checks passed
@radarhere radarhere deleted the import branch August 2, 2025 11:24
@homm
Copy link
Member

homm commented Aug 11, 2025

Why not use standard from typing import TYPE_CHECKING?

@radarhere
Copy link
Member Author

#8516 (comment)

We can skip the typing import, mypy redefines TYPE_CHECKING as True

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

Successfully merging this pull request may close these issues.

3 participants