Return the text for the stub.
(self)
| 688 | return imports |
| 689 | |
| 690 | def output(self) -> str: |
| 691 | """Return the text for the stub.""" |
| 692 | pieces: list[str] = [] |
| 693 | if imports := self.get_imports(): |
| 694 | pieces.append(imports) |
| 695 | if dunder_all := self.get_dunder_all(): |
| 696 | pieces.append(dunder_all) |
| 697 | if self._output: |
| 698 | pieces.append("".join(self._output)) |
| 699 | return "\n".join(pieces) |
| 700 | |
| 701 | def get_dunder_all(self) -> str: |
| 702 | """Return the __all__ list for the stub.""" |
no test coverage detected