summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_compat_upcast.py
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-04-29 19:44:20 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-04-29 19:44:20 -0300
commitb63697287ba1e5de7300890ea4c03b8781b04863 (patch)
tree0eb5db03beef71ddfb5a094521034b9f0b212b5b /pint/testsuite/test_compat_upcast.py
parent10f69c4870ef9acda1b5dd21f2bf87f15855d3ea (diff)
downloadpint-b63697287ba1e5de7300890ea4c03b8781b04863.tar.gz
Run pyupgrade --py39-plus in all files except _vendor
Diffstat (limited to 'pint/testsuite/test_compat_upcast.py')
-rw-r--r--pint/testsuite/test_compat_upcast.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pint/testsuite/test_compat_upcast.py b/pint/testsuite/test_compat_upcast.py
index ad267c1..56996b9 100644
--- a/pint/testsuite/test_compat_upcast.py
+++ b/pint/testsuite/test_compat_upcast.py
@@ -126,9 +126,7 @@ def test_array_function_deferral(da, module_registry):
upper = 3 * module_registry.m
args = (da, lower, upper)
assert (
- lower.__array_function__(
- np.clip, tuple(set(type(arg) for arg in args)), args, {}
- )
+ lower.__array_function__(np.clip, tuple({type(arg) for arg in args}), args, {})
is NotImplemented
)