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

Method get_imports

mypy/stubutil.py:682–688  ·  view source on GitHub ↗

Return the import statements for the stub.

(self)

Source from the content-addressed store, hash-verified

680 self._import_lines.append(line)
681
682 def get_imports(self) -> str:
683 """Return the import statements for the stub."""
684 imports = ""
685 if self._import_lines:
686 imports += "".join(self._import_lines)
687 imports += "".join(self.import_tracker.import_lines())
688 return imports
689
690 def output(self) -> str:
691 """Return the text for the stub."""

Calls 2

import_linesMethod · 0.80
joinMethod · 0.45