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 d59658d commit 0ec4e4eCopy full SHA for 0ec4e4e
1 file changed
Lib/test/test_typing.py
@@ -7158,6 +7158,8 @@ class C:
7158
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'})
7163
7164
def test_get_type_hints_format_function(self):
7165
def func(x: undefined) -> undefined: ...
0 commit comments