(self)
| 733 | |
| 734 | @joiner |
| 735 | def __str__(self) -> Iterator[str]: |
| 736 | yield from ( |
| 737 | "", |
| 738 | self.func_signature(), |
| 739 | indent(self.func_body()), |
| 740 | ) |
| 741 | |
| 742 | # convenience to await any object that has a sync method |
| 743 | # without having to call it explicitly |
| 744 | if self.is_sync: |
| 745 | yield from ( |
| 746 | "", |
| 747 | "def __await__(self):", |
| 748 | indent("return self.sync().__await__()"), |
| 749 | ) |
| 750 | |
| 751 | def func_signature(self) -> str: |
| 752 | params = ", ".join( |
nothing calls this directly
no test coverage detected