mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-17 21:30:58 +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>
58 lines
4.5 KiB
Plaintext
58 lines
4.5 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]
|
|
115: error: Untyped fields disallowed [pydantic-field]
|
|
121: error: Incompatible types in assignment (expression has type "None", variable has type "int") [assignment]
|
|
122: error: Untyped fields disallowed [pydantic-field]
|
|
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]
|
|
140: error: Argument "x" to "InheritingModel" has incompatible type "str"; expected "int" [arg-type]
|
|
141: error: Argument "x" to "Model" has incompatible type "str"; expected "int" [arg-type]
|
|
158: error: Argument "data" to "Response" has incompatible type "int"; expected "Model" [arg-type]
|
|
166: error: Argument "y" to "AliasModel" has incompatible type "int"; expected "str" [arg-type]
|
|
172: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
176: error: Argument "z" to "DynamicAliasModel" has incompatible type "str"; expected "int" [arg-type]
|
|
187: error: Unexpected keyword argument "y" for "DynamicAliasModel2" [call-arg]
|
|
196: error: Unexpected keyword argument "y" for "KwargsDynamicAliasModel" [call-arg]
|
|
203: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
221: error: Untyped fields disallowed [pydantic-field]
|
|
225: error: Unexpected keyword argument "x" for "AliasGeneratorModel2" [call-arg]
|
|
226: error: Unexpected keyword argument "z" for "AliasGeneratorModel2" [call-arg]
|
|
229: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
230: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
238: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
239: error: Required dynamic aliases disallowed [pydantic-alias]
|
|
242: error: Unexpected keyword argument "x" for "KwargsAliasGeneratorModel2" [call-arg]
|
|
243: error: Unexpected keyword argument "z" for "KwargsAliasGeneratorModel2" [call-arg]
|
|
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]
|