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

Suppress mypy error #2

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Conversation

kostrykin
Copy link
Owner

@kostrykin kostrykin commented Nov 12, 2024

Suppress the error

test/unit/data/datatypes/test_images.py:23: error: Argument 1 to "set_meta" of "Image" has incompatible type "MockDataset"; expected "DatasetProtocol"

by inline annotation:

image.set_meta(dataset)  # type: ignore[arg-type]

@kostrykin kostrykin changed the title Fix issue with mypy Add workaround for issue with mypy Nov 12, 2024
@kostrykin kostrykin changed the title Add workaround for issue with mypy Suppress mypy error Nov 12, 2024
@kostrykin kostrykin marked this pull request as ready for review November 12, 2024 18:10
@kostrykin kostrykin merged commit 48d88ea into image-metadata/dev Nov 12, 2024
67 of 86 checks passed
@kostrykin kostrykin deleted the image-metadata/fix-mypy branch November 12, 2024 18:12
Copy link

This PR was merged without a "kind/" label, please correct.

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