Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type hints #8108

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Added type hints #8108

merged 1 commit into from
Jun 8, 2024

Conversation

radarhere
Copy link
Member

No description provided.

@@ -30,7 +30,7 @@
_handler = None


def register_handler(handler: ImageFile.StubHandler) -> None:
def register_handler(handler: ImageFile.StubHandler | None) -> None:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the tests, None is passed to this from

WmfImagePlugin.register_handler(original_handler)

@hugovk hugovk merged commit 0a45381 into python-pillow:main Jun 8, 2024
55 of 56 checks passed
@radarhere radarhere deleted the type_hint branch June 8, 2024 21:05
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.

None yet

2 participants