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

Class Input

sdk/python/codegen/src/codegen/generator.py:982–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980
981
982class Input(ObjectHandler[GraphQLInputObjectType]):
983 predicate: ClassVar[Predicate] = staticmethod(is_input_object_type)
984
985 def render_head(self, t: GraphQLInputObjectType) -> str:
986 return f"@typecheck\n@dataclass(slots=True)\n{super().render_head(t)}"
987
988 def fields(self, t: GraphQLInputObjectType) -> Iterator[_InputField]:
989 return (
990 _InputField(self.ctx, *args)
991 for args in cast(GraphQLInputFieldMap, t.fields).items()
992 )
993
994
995@dataclass

Callers 1

generateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected