You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/test_decorator.py:86: in<module>
("--b=2", 4, partial(_fn_with_all_argument_types, 1, c=1)),
test/test_decorator.py:66: in partial
signature = signature.replace(parameters=new_parameters)
conda/envs/py311test/lib/python3.11/inspect.py:3052: in replace
return type(self)(parameters,
.conda/envs/py311test/lib/python3.11/inspect.py:3008: in __init__
raise ValueError(msg)
E ValueError: non-default argument follows default argument
---------------------------------------------------------------
The test case ("--b=2", 4, partial(_fn_with_all_argument_types, 1, c=1)), has parameters [<Parameter "a: int = 1">, <Parameter "b: int">, <Parameter "c: int = 1">]
To Reproduce
pytest test/test_decorator.py
Desktop (please complete the following information):
Version: master
Python version: 3.11.4
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
zhiruiluo
added a commit
to zhiruiluo/SimpleParsing
that referenced
this issue
Jul 1, 2023
Describe the bug
test_decorator.py failed during collection for Python 3.11.4 at line 65.
The test case
("--b=2", 4, partial(_fn_with_all_argument_types, 1, c=1)),
has parameters[<Parameter "a: int = 1">, <Parameter "b: int">, <Parameter "c: int = 1">]
To Reproduce
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: