Skip to content
Merged
Prev Previous commit
Next Next commit
Update Lib/test/test_types.py
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
  • Loading branch information
uriyyo and Fidget-Spinner committed Jul 3, 2021
commit 71b306ef6cabc59a4ad2e72a5a29b0872423e4b3
2 changes: 1 addition & 1 deletion Lib/test/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def test_or_type_operator_with_TypeVar(self):
def test_union_parameter_chaining(self):
T = typing.TypeVar("T")

assert (float | list[T])[int] == float | list[int]
self.assertEqual((float | list[T])[int], float | list[int])

Comment thread
uriyyo marked this conversation as resolved.
Outdated
def test_or_type_operator_with_forward(self):
T = typing.TypeVar('T')
Expand Down