We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec4e4e commit c6a1a31Copy full SHA for c6a1a31
Lib/test/test_typing.py
@@ -7159,7 +7159,7 @@ class C:
7159
self.assertEqual(get_type_hints(C, format=annotationlib.Format.STRING),
7160
{'x': 'undefined'})
7161
# Make sure using an int as format also works:
7162
- self.assertEqual(get_type_hints(C, format=3), {'x': 'undefined'})
+ self.assertEqual(get_type_hints(C, format=4), {'x': 'undefined'})
7163
7164
def test_get_type_hints_format_function(self):
7165
def func(x: undefined) -> undefined: ...
0 commit comments