MCPcopy Create free account
hub / github.com/dagger/dagger / __str__

Method __str__

sdk/python/codegen/src/codegen/generator.py:735–749  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

func_signatureMethod · 0.95
func_bodyMethod · 0.95

Tested by

no test coverage detected