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

Fixes uses of type :str = None to be :Optional[str] = None #9

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

drcongo
Copy link
Contributor

@drcongo drcongo commented Nov 20, 2024

Small fix to the typing, wherever :str = None is used the str type needs to be wrapped in Optional as None is not a string. This fixes it for users who run tools like Typeguard.

@rohan-chaturvedi rohan-chaturvedi self-requested a review November 20, 2024 11:58
Copy link
Member

@rohan-chaturvedi rohan-chaturvedi left a comment

Choose a reason for hiding this comment

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

@drcongo Thanks for the fix, and for cleaning up the imports too!
This lgtm, @nimish-ks could you give this a once-over too?

@nimish-ks
Copy link
Member

cheers 🍻 @drcongo

@nimish-ks nimish-ks merged commit 74d3ad0 into phasehq:main Nov 20, 2024
1 check passed
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