mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
b4d1ada004
* fix(decorator): detect when a duplicate argument is passed in Currently, it is possible to override a positional argument with a keyword argument using the decorator. In native python, this raises a TypeError. Detect this usecase, to prevent keywords overriding positional parameters. Closes: https://github.com/samuelcolvin/pydantic/issues/2249 * add changelog entry * fix docs example to not override positional argument Co-authored-by: Samuel Colvin <s@muelcolvin.com>
127 B
127 B
Prevent overriding positional arguments with keyword arguments in
validate_arguments, as per behaviour with native functions.