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

Minor improvements #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajinkya-kulkarni
Copy link

Added type hints to the function signatures of the get_shape() and get_dtype() methods to make the return types explicit. Changed the condition in the get_thumb() method from if save_path != None to if save_path is not None for better readability. Improved the condition in the get_thumb() method by checking for None instead of checking the truthiness of save_path. This is a more explicit check.

Added type hints to the function signatures of the get_shape() and get_dtype() methods to make the return types explicit.
Changed the condition in the get_thumb() method from if save_path != None to if save_path is not None for better readability.
Improved the condition in the get_thumb() method by checking for None instead of checking the truthiness of save_path. This is a more explicit check.
@AppVeyorBot
Copy link

Build NanoPyx 356 failed (commit f821d632b9 by @ajinkya-kulkarni)

@paxcalpt
Copy link
Contributor

paxcalpt commented Apr 7, 2023

Build NanoPyx 359 failed (commit f821d632b9 by @ajinkya-kulkarni)

@ajinkya-kulkarni
Copy link
Author

Strange - I don't understand why did it fail? The changes I made should not affect the tests ideally.

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.

3 participants