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

Wrong type hint for the image shape argument #103

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

WeisLeDocto
Copy link
Member

@WeisLeDocto WeisLeDocto commented Feb 25, 2024

In the Camera Block and CameraProcess class, the img_shape argument was type-hinted as Tuple[int, int]. This was correct for gray level images, but incorrect for color images.

With this PR, the type hints are updated to Union[Tuple[int, int], Tuple[int, int, int]] to also consider the image colors.

Was specified as Tuple[int, int], can also be Tuple[int, int, int] for color images.
Changed to Tuple[int, int] | Tuple[int, int, int]
@WeisLeDocto WeisLeDocto added the documentation Missing, incorrect or incomplete documentation label Feb 25, 2024
@WeisLeDocto WeisLeDocto self-assigned this Feb 25, 2024
@WeisLeDocto WeisLeDocto merged commit cfd5a75 into develop Feb 25, 2024
37 checks passed
@WeisLeDocto WeisLeDocto deleted the docs/wrong_shape_typehint branch February 25, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Missing, incorrect or incomplete documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant