From f4cc44e6ad5f75c20ccef998efa0507b9e9f97af Mon Sep 17 00:00:00 2001 From: Vincent Luczkow Date: Wed, 17 Aug 2022 18:21:09 -0700 Subject: [PATCH] Removed TypeGuard, seems to be unsupported by earlier typing versions --- aukpy/queries.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aukpy/queries.py b/aukpy/queries.py index 7d55ab8..7422e7b 100644 --- a/aukpy/queries.py +++ b/aukpy/queries.py @@ -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)