|
213 | 213 | 'Unexpected keyword argument "headline__startswith" for "in_bulk" of "QuerySet"',
|
214 | 214 | ],
|
215 | 215 | 'many_to_one': [
|
216 |
| - 'Incompatible type for "parent" of "Child" (got "None", expected "Union[Parent, Combinable]")' |
| 216 | + 'Incompatible type for "parent" of "Child" (got "None", expected "Union[Parent, Combinable]")', |
| 217 | + 'Incompatible type for "parent" of "Child" (got "Child", expected "Union[Parent, Combinable]")' |
217 | 218 | ],
|
218 | 219 | 'model_meta': [
|
219 | 220 | '"object" has no attribute "items"',
|
220 |
| - '"Field" has no attribute "many_to_many"' |
| 221 | + '"Field" has no attribute "many_to_many"', |
| 222 | + re.compile(r'Definition of "(objects|_default_manager)" in base class "FirstParent" is incompatible with definition in base class "SecondParent"'), |
221 | 223 | ],
|
222 | 224 | 'model_forms': [
|
223 | 225 | 'Argument "instance" to "InvalidModelForm" has incompatible type "Type[Category]"; expected "Optional[Model]"',
|
|
229 | 231 | 'Cannot assign multiple types to name "PersonTwoImages" without an explicit "Type[...]" annotation',
|
230 | 232 | 'Incompatible types in assignment (expression has type "Type[Person]", '
|
231 | 233 | + 'base class "ImageFieldTestMixin" defined the type as "Type[PersonWithHeightAndWidth]")',
|
232 |
| - ], |
| 234 | + re.compile( |
| 235 | + r'Incompatible types in assignment \(expression has type "Type\[.+?\]", base class "IntegerFieldTests" defined the type as "Type\[IntegerModel\]"\)'), |
| 236 | + re.compile(r'Incompatible types in assignment \(expression has type "Type\[.+?\]", base class "ImageFieldTestMixin" defined the type as "Type\[PersonWithHeightAndWidth\]"\)'), |
| 237 | + 'Incompatible import of "Person"', |
| 238 | + 'Incompatible types in assignment (expression has type "FloatModel", variable has type "Union[float, int, str, Combinable]")', |
| 239 | + ], |
233 | 240 | 'model_formsets': [
|
234 | 241 | 'Incompatible types in string interpolation (expression has type "object", '
|
235 | 242 | + 'placeholder has type "Union[int, float]")'
|
236 | 243 | ],
|
237 | 244 | 'model_formsets_regress': [
|
238 | 245 | 'Incompatible types in assignment (expression has type "Model", variable has type "User")'
|
239 | 246 | ],
|
| 247 | + 'model_inheritance_regress': [ |
| 248 | + re.compile(r'Definition of "(objects|_default_manager)" in base class "Person" is incompatible with definition in base class "Politician"'), |
| 249 | + ], |
240 | 250 | 'model_regress': [
|
241 | 251 | 'Too many arguments for "Worker"',
|
242 | 252 | re.compile(r'Incompatible type for "[a-z]+" of "Worker" \(got "int", expected')
|
|
261 | 271 | 'Argument 1 to "RunPython" has incompatible type "str"; expected "Callable[..., Any]"',
|
262 | 272 | 'FakeLoader',
|
263 | 273 | 'Argument 1 to "append" of "list" has incompatible type "AddIndex"; expected "CreateModel"',
|
264 |
| - 'Unsupported operand types for - ("Set[Any]" and "None")' |
| 274 | + 'Unsupported operand types for - ("Set[Any]" and "None")', |
| 275 | + re.compile(r'Definition of "(objects|_default_manager)" in base class "Foo" is incompatible with definition in base class "Bar"'), |
265 | 276 | ],
|
266 | 277 | 'middleware_exceptions': [
|
267 | 278 | 'Argument 1 to "append" of "list" has incompatible type "Tuple[Any, Any]"; expected "str"'
|
|
282 | 293 | + 'expected "Optional[Type[JSONEncoder]]"',
|
283 | 294 | 'for model "CITestModel"',
|
284 | 295 | 'Incompatible type for "field" of "IntegerArrayModel" (got "None", '
|
285 |
| - + 'expected "Union[Sequence[int], Combinable]")' |
| 296 | + + 'expected "Union[Sequence[int], Combinable]")', |
| 297 | + re.compile(r'Incompatible types in assignment \(expression has type "Type\[.+?\]", base class "UnaccentTest" defined the type as "Type\[CharFieldModel\]"\)'), |
| 298 | + 'Incompatible types in assignment (expression has type "Type[TextFieldModel]", base class "TrigramTest" defined the type as "Type[CharFieldModel]")', |
286 | 299 | ],
|
287 | 300 | 'properties': [
|
288 | 301 | re.compile('Unexpected attribute "(full_name|full_name_2)" for model "Person"')
|
|
291 | 304 | 'Incompatible types in assignment (expression has type "None", variable has type "str")',
|
292 | 305 | 'Invalid index type "Optional[str]" for "Dict[str, int]"; expected type "str"',
|
293 | 306 | 'No overload variant of "values_list" of "QuerySet" matches argument types "str", "bool", "bool"',
|
| 307 | + 'Unsupported operand types for & ("QuerySet[Author, Author]" and "QuerySet[Tag, Tag]")', |
| 308 | + 'Unsupported operand types for | ("QuerySet[Author, Author]" and "QuerySet[Tag, Tag]")', |
| 309 | + 'Incompatible types in assignment (expression has type "ObjectB", variable has type "ObjectA")', |
| 310 | + 'Incompatible types in assignment (expression has type "ObjectC", variable has type "ObjectA")', |
| 311 | + 'Incompatible type for "objectb" of "ObjectC" (got "ObjectA", expected "Union[ObjectB, Combinable, None, None]")', |
294 | 312 | ],
|
295 | 313 | 'requests': [
|
296 | 314 | 'Incompatible types in assignment (expression has type "Dict[str, str]", variable has type "QueryDict")'
|
|
303 | 321 | '"None" has no attribute "__iter__"',
|
304 | 322 | 'has no attribute "read_by"'
|
305 | 323 | ],
|
| 324 | + 'proxy_model_inheritance': [ |
| 325 | + 'Incompatible import of "ProxyModel"' |
| 326 | + ], |
306 | 327 | 'signals': [
|
307 | 328 | 'Argument 1 to "append" of "list" has incompatible type "Tuple[Any, Any, Optional[Any], Any]"; '
|
308 | 329 | + 'expected "Tuple[Any, Any, Any]"'
|
|
387 | 408 | 'Incompatible types in assignment (expression has type "None", variable has type "int")',
|
388 | 409 | ],
|
389 | 410 | 'select_related_onetoone': [
|
390 |
| - '"None" has no attribute' |
| 411 | + '"None" has no attribute', |
| 412 | + 'Incompatible types in assignment (expression has type "Parent2", variable has type "Parent1")', |
| 413 | + 'Definition of "objects" in base class "Parent1" is incompatible with definition in base class "Parent2"', |
| 414 | + 'Definition of "_default_manager" in base class "Parent1" is incompatible with definition in base class "Parent2"', |
391 | 415 | ],
|
392 | 416 | 'servers': [
|
393 | 417 | re.compile('Argument [0-9] to "WSGIRequestHandler"')
|
|
0 commit comments