File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5010,7 +5010,7 @@ def __init__(self, x: undef):
5010
5010
sig = inspect .signature (f , annotation_format = Format .FORWARDREF )
5011
5011
self .assertEqual (list (sig .parameters ), ['x' ])
5012
5012
sig = inspect .signature (C , annotation_format = Format .FORWARDREF )
5013
- self .assertEqual (list (sig .parameters . keys () ), ['x' ])
5013
+ self .assertEqual (list (sig .parameters ), ['x' ])
5014
5014
5015
5015
class CallableWrapper :
5016
5016
def __init__ (self , func ):
@@ -5026,7 +5026,7 @@ def __annotations__(self):
5026
5026
5027
5027
cw = CallableWrapper (f )
5028
5028
sig = inspect .signature (cw , annotation_format = Format .FORWARDREF )
5029
- self .assertEqual (list (sig . parameters . keys () ), ['args' , 'kwargs' ])
5029
+ self .assertEqual (list (sig ), ['args' , 'kwargs' ])
5030
5030
5031
5031
def test_signature_none_annotation (self ):
5032
5032
class funclike :
You can’t perform that action at this time.
0 commit comments