-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.X
Description
Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
pydantic version: 1.4
pydantic compiled: True
install path: /home/[username]/Desktop/[project]/env/lib/python3.6/site-packages/pydantic
python version: 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0]
platform: Linux-5.3.0-26-generic-x86_64-with-Ubuntu-18.04-bionic
optional deps. installed: ['typing-extensions']
Code:
@root_validator(pre=False, skip_on_failure=True)
def test_validator(cls, values):
return valuesOutput:
test.py:5: error: No overload variant of "root_validator" matches argument types "bool", "bool"
test.py:5: note: Possible overload variants:
test.py:5: note: def root_validator(_func: Callable[..., Any]) -> classmethod
test.py:5: note: def root_validator(*, pre: bool = ...) -> Callable[[Callable[..., Any]], classmethod]
Metadata
Metadata
Assignees
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.X