MCPcopy Index your code
hub / github.com/python/mypy / missing_info

Function missing_info

mypy/fixup.py:422–431  ·  view source on GitHub ↗
(modules: dict[str, MypyFile])

Source from the content-addressed store, hash-verified

420
421
422def 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
434def missing_alias() -> TypeAlias:

Callers 2

resolve_cross_refMethod · 0.85

Calls 7

ClassDefClass · 0.90
BlockClass · 0.90
TypeInfoClass · 0.90
SymbolTableClass · 0.90
InstanceClass · 0.90
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…