Skip to content

Commit

Permalink
Extra test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccluskey committed Nov 2, 2023
1 parent b08e984 commit c7f0b97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdks/python/apache_beam/typehints/typehints_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def test_one_way_compatibility(self):
self.assertNotCompatible(
typehints.FrozenSet[int], typehints.Collection[int])
self.assertNotCompatible(typehints.Tuple[int], typehints.Collection[int])
self.assertNotCompatible(typehints.Collection[int], typehints.Iterable[int])

def test_getitem_invalid_composite_type_param(self):
with self.assertRaises(TypeError) as e:
Expand Down Expand Up @@ -918,6 +919,7 @@ def test_compatibility(self):
self.assertCompatible(
typehints.Iterable[typehints.Any],
typehints.List[typehints.Tuple[int, bool]])
self.assertCompatible(typehints.Iterable[int], typehints.Collection[int])

def test_tuple_compatibility(self):
self.assertCompatible(typehints.Iterable[int], typehints.Tuple[int, ...])
Expand Down

0 comments on commit c7f0b97

Please sign in to comment.