mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
460f858cc5
* Add static checking for default and default_factory * Describe PR change * Remove unnecessary booleans default_specified and default_factory_specified * Add test with default without Field * Apply suggestions from code review Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * Fix tests * Add handling of Overload types for mypy0.971 * Avoid to use walrus operator * Support mypy 0.910 for overloaded types * Increase coverage for mypy plugin Co-authored-by: Samuel Colvin <samcolvin@gmail.com> Co-authored-by: Samuel Colvin <s@muelcolvin.com>
33 lines
2.6 KiB
Plaintext
33 lines
2.6 KiB
Plaintext
24: error: Unexpected keyword argument "z" for "Model" [call-arg]
|
|
25: error: Missing named argument "y" for "Model" [call-arg]
|
|
26: error: Property "y" defined in "Model" is read-only [misc]
|
|
27: error: "Model" does not have orm_mode=True [pydantic-orm]
|
|
36: error: Unexpected keyword argument "x" for "ForbidExtraModel" [call-arg]
|
|
47: error: Unexpected keyword argument "x" for "ForbidExtraModel2" [call-arg]
|
|
53: error: Invalid value for "Config.extra" [pydantic-config]
|
|
58: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
63: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
74: error: Incompatible types in assignment (expression has type "ellipsis", variable has type "int") [assignment]
|
|
83: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
87: error: Missing named argument "a" for "DefaultTestingModel" [call-arg]
|
|
87: error: Missing named argument "b" for "DefaultTestingModel" [call-arg]
|
|
87: error: Missing named argument "c" for "DefaultTestingModel" [call-arg]
|
|
87: error: Missing named argument "d" for "DefaultTestingModel" [call-arg]
|
|
87: error: Missing named argument "e" for "DefaultTestingModel" [call-arg]
|
|
91: error: Name "Undefined" is not defined [name-defined]
|
|
94: error: Missing named argument "undefined" for "UndefinedAnnotationModel" [call-arg]
|
|
101: error: Missing named argument "y" for "construct" of "Model" [call-arg]
|
|
103: error: Argument "x" to "construct" of "Model" has incompatible type "str"; expected "int" [arg-type]
|
|
156: error: Missing named argument "x" for "DynamicAliasModel2" [call-arg]
|
|
175: error: Unused "type: ignore" comment
|
|
182: error: Unused "type: ignore" comment
|
|
189: error: Name "Missing" is not defined [name-defined]
|
|
219: error: Property "y" defined in "FrozenModel" is read-only [misc]
|
|
240: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
241: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
244: error: Incompatible types in assignment (expression has type "Set[_T]", variable has type "str") [assignment]
|
|
245: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
|
|
246: error: Incompatible types in assignment (expression has type "List[_T]", variable has type "List[int]") [assignment]
|
|
247: error: Argument "default_factory" to "Field" has incompatible type "int"; expected "Optional[Callable[[], Any]]" [arg-type]
|
|
250: error: Field default and default_factory cannot be specified together [pydantic-field]
|