ilevkivskyi / typing_inspect

Runtime inspection utilities for Python typing module
MIT License
349 stars 35 forks source link

fix: is union will always return a bool #97

Open samsja opened 1 year ago

samsja commented 1 year ago

Signed-off-by: Sami Jaghouar sami.jaghouar@hotmail.fr

Context

This pr fix this bug : https://github.com/ilevkivskyi/typing_inspect/issues/96

Before :

from typing_inspect import is_union_type
print(is_union_type(int))
>>> None

After:

from typing_inspect import is_union_type
print(is_union_type(int))
>>> False