Skip to content

Move typing imports under TYPE_CHECKING block - #9827

Open
hugovk wants to merge 1 commit into
python-pillow:mainfrom
hugovk:flake8-type-checking
Open

Move typing imports under TYPE_CHECKING block#9827
hugovk wants to merge 1 commit into
python-pillow:mainfrom
hugovk:flake8-type-checking

Conversation

@hugovk

@hugovk hugovk commented Jul 26, 2026

Copy link
Copy Markdown
Member

Use https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc so we only import typing things when checking types.

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.

1 participant