From e4a11cb29af12b0e67fda3f924585b23cee0b567 Mon Sep 17 00:00:00 2001 From: Sista Seetaram Date: Fri, 3 Sep 2021 00:25:57 +0530 Subject: fixed unhashable instance and potential exception as listed in LGTM#19077 --- numpy/array_api/_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/array_api/_typing.py') diff --git a/numpy/array_api/_typing.py b/numpy/array_api/_typing.py index d530a91ae..8b7832d74 100644 --- a/numpy/array_api/_typing.py +++ b/numpy/array_api/_typing.py @@ -37,7 +37,7 @@ NestedSequence = Sequence[Sequence[Any]] Device = Any Dtype = Type[ - Union[[int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64]] + Union[(int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64)] ] SupportsDLPack = Any SupportsBufferProtocol = Any -- cgit v1.2.1 From e4c589054b342dc750cdd09686c0c01ab762679c Mon Sep 17 00:00:00 2001 From: Sista Seetaram Date: Fri, 3 Sep 2021 06:09:38 +0530 Subject: fix unhashable instance and potential exception identified by LGTM --- numpy/array_api/_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/array_api/_typing.py') diff --git a/numpy/array_api/_typing.py b/numpy/array_api/_typing.py index 8b7832d74..831a108bc 100644 --- a/numpy/array_api/_typing.py +++ b/numpy/array_api/_typing.py @@ -37,7 +37,7 @@ NestedSequence = Sequence[Sequence[Any]] Device = Any Dtype = Type[ - Union[(int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64)] + Union[int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, float64] ] SupportsDLPack = Any SupportsBufferProtocol = Any -- cgit v1.2.1