8000 two more · python/cpython@197b003 · GitHub
[go: up one dir, main page]

Skip to content

Commit 197b003

Browse files
two more
1 parent 8e3c3a9 commit 197b003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5010,7 +5010,7 @@ def __init__(self, x: undef):
50105010
sig = inspect.signature(f, annotation_format=Format.FORWARDREF)
50115011
self.assertEqual(list(sig.parameters), ['x'])
50125012
sig = inspect.signature(C, annotation_format=Format.FORWARDREF)
5013-
self.assertEqual(list(sig.parameters.keys()), ['x'])
5013+
self.assertEqual(list(sig.parameters), ['x'])
50145014

50155015
class CallableWrapper:
50165016
def __init__(self, func):
@@ -5026,7 +5026,7 @@ def __annotations__(self):
50265026

50275027
cw = CallableWrapper(f)
50285028
sig = inspect.signature(cw, annotation_format=Format.FORWARDREF)
5029-
self.assertEqual(list(sig.parameters.keys()), ['args', 'kwargs'])
5029+
self.assertEqual(list(sig), ['args', 'kwargs'])
50305030

50315031
def test_signature_none_annotation(self):
50325032
class funclike:

0 commit comments

Comments
 (0)
0