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

Method render_body

sdk/python/codegen/src/codegen/generator.py:967–979  ·  view source on GitHub ↗
(self, t: _O)

Source from the content-addressed store, hash-verified

965
966 @joiner
967 def render_body(self, t: _O) -> Iterator[str]:
968 if body := super().render_body(t):
969 yield body
970
971 yield from (
972 str(field)
973 # Sorting by graphql name rather than python name for
974 # consistency with other SDKs.
975 for field in sorted(
976 self.fields(t),
977 key=lambda f: (getattr(f, "has_default", False), f.graphql_name),
978 )
979 )
980
981
982class Input(ObjectHandler[GraphQLInputObjectType]):

Callers

nothing calls this directly

Calls 2

fieldsMethod · 0.95
render_bodyMethod · 0.45

Tested by

no test coverage detected