MCPcopy Create free account
hub / github.com/python/mypy / convert_mypy_file_to_json

Function convert_mypy_file_to_json

mypy/exportjson.py:85–94  ·  view source on GitHub ↗
(self: MypyFile, cfg: Config)

Source from the content-addressed store, hash-verified

83
84
85def convert_mypy_file_to_json(self: MypyFile, cfg: Config) -> Json:
86 return {
87 ".class": "MypyFile",
88 "_fullname": self._fullname,
89 "names": convert_symbol_table(self.names, cfg),
90 "is_stub": self.is_stub,
91 "path": self.path,
92 "is_partial_stub_package": self.is_partial_stub_package,
93 "future_import_flags": sorted(self.future_import_flags),
94 }
95
96
97def convert_symbol_table(self: SymbolTable, cfg: Config) -> Json:

Callers 1

Calls 2

convert_symbol_tableFunction · 0.85
sortedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…