We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey I think I found a bug
from typing_inspect import is_union_type print(is_union_type(int)) >>> None
I believe is_union_type should always return a bool, and in this case it should return False
is_union_type
The text was updated successfully, but these errors were encountered:
Yeah. Should be an easy fix, left operand here https://github.com/ilevkivskyi/typing_inspect/blob/master/typing_inspect.py#L232 should be MaybeUnionType is not None instead of plain MaybeUnionType. PRs are welcome!
MaybeUnionType is not None
MaybeUnionType
Sorry, something went wrong.
Hey here is the PR : #97
No branches or pull requests
Hey I think I found a bug
I believe
is_union_type
should always return a bool, and in this case it should return FalseThe text was updated successfully, but these errors were encountered: