Return the import statements for the stub.
(self)
| 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.""" |