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

BUG: add bytes to ImageResource typehints #1026

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

FirefoxMetzger
Copy link
Contributor

Closes: #1024

This PR adds bytes as an allowed ImageResource input to our type hints. This means that iio.imopen(b"some bytes") or iio.imread(b"some bytes") should be correctly annotated and/or validated by mypy.

@FirefoxMetzger FirefoxMetzger merged commit cc35f33 into imageio:master Jul 29, 2023
24 checks passed
@FirefoxMetzger FirefoxMetzger deleted the bytes_typehint branch July 29, 2023 09:03
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.

ImageResource type should support bytes
1 participant