Add type hints for args and kwargs #8272
Annotations
4 errors
Python tests C++11:
tests/test_kwargs_and_defaults.py#L16
test_function_signatures
assert --- actual / +++ expected
- args_function(*args: typing.Any) -> tuple
? ------------
+ args_function(*args) -> tuple
|
Python tests C++11:
tests/test_kwargs_and_defaults.py#L113
test_mixed_args_and_kwargs
assert --- actual / +++ expected
mixed_plus_args(): incompatible function arguments. The following argument types are supported:
- 1. (arg0: int, arg1: float, *args: typing.Any) -> tuple
? ------------
+ 1. (arg0: int, arg1: float, *args) -> tuple
Invoked with: 1
|
Python tests C++11:
tests/test_kwargs_and_defaults.py#L321
test_positional_only_args
AssertionError: assert 'args_kwonly_...y) -> tuple\n' == 'args_kwonly_...s) -> tuple\n'
Skipping 71 identical leading characters in diff, use -v to show
- 159, *args, z: int = 42, **kwargs) -> tuple
+ 159, *args: typing.Any, z: int = 42, **kwargs: typing.Any) -> tuple
? ++++++++++++ ++++++++++++
|
Python tests C++11
Process completed with exit code 2.
|
Loading