(modules: dict[str, MypyFile])
| 420 | |
| 421 | |
| 422 | def missing_info(modules: dict[str, MypyFile]) -> TypeInfo: |
| 423 | suggestion = _SUGGESTION.format("info") |
| 424 | dummy_def = ClassDef(suggestion, Block([])) |
| 425 | dummy_def.fullname = suggestion |
| 426 | |
| 427 | info = TypeInfo(SymbolTable(), dummy_def, "<missing>") |
| 428 | obj_type = lookup_fully_qualified_typeinfo(modules, "builtins.object", allow_missing=False) |
| 429 | info.bases = [Instance(obj_type, [])] |
| 430 | info.mro = [info, obj_type] |
| 431 | return info |
| 432 | |
| 433 | |
| 434 | def missing_alias() -> TypeAlias: |
no test coverage detected
searching dependent graphs…