-
Notifications
You must be signed in to change notification settings - Fork 53
Fix a typo in a type annotation #116
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
Conversation
Optional only takes one argument. It must be Optional[Union[...]] to be valid.
Since the default is an integer, None is not defined.
I changed the annotation for the |
endpoint=None is not defined, so it should not be Optional.
I also changed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this!
No. Just a copy and paste error. |
This also removes the dtype from the
where()
type annotation. We should document input and output dtypes (#98), but type annotations aren't the right place to do this.