Skip to content

Commit

Permalink
remove redundant assertions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Jun 9, 2024
1 parent 4f95b1c commit ffdba91
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4869,8 +4869,6 @@ def test_pep695_generic_with_future_annotations(self):
self.assertEqual(hints_for_B, {"x": int, "y": str, "z": bytes})

hints_for_C = get_type_hints(ann_module695.C)
self.assertNotIn(int, hints_for_C.values())
self.assertNotIn(str, hints_for_C.values())
self.assertEqual(
set(hints_for_C.values()),
set(ann_module695.C.__type_params__)
Expand All @@ -4887,8 +4885,6 @@ def test_pep695_generic_with_future_annotations(self):
self.assertIs(hints_for_generic_function["zz"].__origin__, func_t_params[2])

hints_for_generic_method = get_type_hints(ann_module695.D.generic_method)
self.assertNotIn(int, hints_for_generic_method.values())
self.assertNotIn(str, hints_for_generic_method.values())
params = {
param.__name__: param
for param in ann_module695.D.generic_method.__type_params__
Expand Down

0 comments on commit ffdba91

Please sign in to comment.