From 0621e1b15674cf96ccedf7993da3ef8a6ee87562 Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Sun, 15 Oct 2023 21:59:47 +0100 Subject: [PATCH] Fix nonsensical type in test --- .../tests/typing_extensions/test_backported_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypothesis-python/tests/typing_extensions/test_backported_types.py b/hypothesis-python/tests/typing_extensions/test_backported_types.py index ddfdd2e155..b1031e39df 100644 --- a/hypothesis-python/tests/typing_extensions/test_backported_types.py +++ b/hypothesis-python/tests/typing_extensions/test_backported_types.py @@ -71,7 +71,7 @@ def test_typing_extensions_Type_int(): assert from_type(Type[int]).example() is int -@given(from_type(Type[Union[str, list]])) +@given(from_type(Union[Type[str], Type[list]])) def test_typing_extensions_Type_Union(ex): assert ex in (str, list)