mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-17 13:20:57 +00:00
bc1f09b3e4
Previously, the Mypy plugin only supported drawing settings from a Config class. Now, it fully supports drawing settings from class kwargs too. Co-authored-by: Matthew Gamble <matthew.gamble@rea-group.com>
42 lines
3.2 KiB
Plaintext
42 lines
3.2 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]
|
|
39: error: Unexpected keyword argument "z" for "KwargsModel" [call-arg]
|
|
40: error: Missing named argument "y" for "KwargsModel" [call-arg]
|
|
41: error: Property "y" defined in "KwargsModel" is read-only [misc]
|
|
42: error: "KwargsModel" does not have orm_mode=True [pydantic-orm]
|
|
51: error: Unexpected keyword argument "x" for "ForbidExtraModel" [call-arg]
|
|
58: error: Unexpected keyword argument "x" for "KwargsForbidExtraModel" [call-arg]
|
|
69: error: Unexpected keyword argument "x" for "ForbidExtraModel2" [call-arg]
|
|
75: error: Invalid value for "Config.extra" [pydantic-config]
|
|
78: error: Invalid value for "Config.extra" [pydantic-config]
|
|
84: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
87: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
93: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
96: error: Invalid value for "Config.orm_mode" [pydantic-config]
|
|
112: error: Incompatible types in assignment (expression has type "ellipsis", variable has type "int") [assignment]
|
|
121: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
125: error: Missing named argument "a" for "DefaultTestingModel" [call-arg]
|
|
125: error: Missing named argument "b" for "DefaultTestingModel" [call-arg]
|
|
125: error: Missing named argument "c" for "DefaultTestingModel" [call-arg]
|
|
125: error: Missing named argument "d" for "DefaultTestingModel" [call-arg]
|
|
125: error: Missing named argument "e" for "DefaultTestingModel" [call-arg]
|
|
129: error: Name "Undefined" is not defined [name-defined]
|
|
132: error: Missing named argument "undefined" for "UndefinedAnnotationModel" [call-arg]
|
|
135: error: Missing named argument "y" for "model_construct" of "Model" [call-arg]
|
|
137: error: Argument "x" to "model_construct" of "Model" has incompatible type "str"; expected "int" [arg-type]
|
|
187: error: Missing named argument "x" for "DynamicAliasModel2" [call-arg]
|
|
196: error: Missing named argument "x" for "KwargsDynamicAliasModel" [call-arg]
|
|
215: error: Unused "type: ignore" comment
|
|
222: error: Unused "type: ignore" comment
|
|
246: error: Name "Missing" is not defined [name-defined]
|
|
276: error: Property "y" defined in "FrozenModel" is read-only [misc]
|
|
297: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
298: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
301: error: Incompatible types in assignment (expression has type "Set[Any]", variable has type "str") [assignment]
|
|
302: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
|
|
304: error: Argument "default_factory" to "Field" has incompatible type "int"; expected "Optional[Callable[[], Any]]" [arg-type]
|
|
307: error: Field default and default_factory cannot be specified together [pydantic-field]
|
|
317: error: Missing positional argument "self" in call to "instance_method" of "ModelWithAnnotatedValidator" [call-arg]
|