Skip to content

Commit

Permalink
Removed TypeGuard, seems to be unsupported by earlier typing versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzko committed Aug 18, 2022
1 parent f3f7593 commit f4cc44e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aukpy/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
Tuple,
Any,
Literal,
TypeGuard,
)


Distance = Literal["km", "miles"]


def check_simple_type(value) -> TypeGuard[Union[str, int, float, bool]]:
def check_simple_type(value) -> bool:
return (
isinstance(value, str)
or isinstance(value, float)
Expand Down

0 comments on commit f4cc44e

Please sign in to comment.