Fix lookup of special values
This commit is contained in:
parent
9c19728d2b
commit
08a572086b
|
@ -38,7 +38,8 @@ if hasattr(inspect, 'signature'):
|
|||
sig = inspect.signature(func)
|
||||
params = list(sig.parameters.values())
|
||||
if params:
|
||||
return params[0].kind in (sig.POSITIONAL_ONLY, sig.POSITIONAL_OR_KEYWORD)
|
||||
return params[0].kind in (params[0].POSITIONAL_ONLY,
|
||||
params[0].POSITIONAL_OR_KEYWORD)
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue