mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Two minor typing.py fixes (upstream #305)
This commit is contained in:
parent
ac353dfa14
commit
3b557991d4
2 changed files with 2 additions and 6 deletions
|
@ -1182,7 +1182,7 @@ gth = get_type_hints
|
|||
class GetTypeHintTests(BaseTestCase):
|
||||
@skipUnless(PY36, 'Python 3.6 required')
|
||||
def test_get_type_hints_modules(self):
|
||||
self.assertEqual(gth(ann_module), {'x': int, 'y': str})
|
||||
self.assertEqual(gth(ann_module), {1: 2, 'f': Tuple[int, int], 'x': int, 'y': str})
|
||||
self.assertEqual(gth(ann_module2), {})
|
||||
self.assertEqual(gth(ann_module3), {})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue