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

Method render_body

sdk/python/codegen/src/codegen/generator.py:1039–1055  ·  view source on GitHub ↗
(self, t: GraphQLInterfaceType)

Source from the content-addressed store, hash-verified

1037
1038 @joiner
1039 def render_body(self, t: GraphQLInterfaceType) -> Iterator[str]:
1040 if t.description:
1041 yield from wrap(doc(t.description))
1042
1043 for name, ifield in sorted(t.fields.items()):
1044 if name == "id":
1045 # id is available on all Type objects
1046 continue
1047
1048 obj_field = _ObjectField(self.ctx, name, ifield, t)
1049 sig = obj_field.func_signature()
1050 yield ""
1051 yield f"{sig}"
1052 if obj_field.description:
1053 yield indent(doc(obj_field.description))
1054 else:
1055 yield indent("...")
1056
1057
1058class Object(ObjectHandler[GraphQLObjectType]):

Callers 1

renderMethod · 0.95

Calls 4

wrapFunction · 0.85
docFunction · 0.85
_ObjectFieldClass · 0.85
func_signatureMethod · 0.80

Tested by

no test coverage detected