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

Method _get_value

sdk/python/codegen/src/codegen/generator.py:941–946  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

939 yield doc("\n\n".join(doc_parts))
940
941 def _get_value(self, value) -> str:
942 if value.ast_node and (directive := self.ctx.schema.get_directive("enumValue")):
943 args = graphql.get_directive_values(directive, value.ast_node)
944 if args:
945 return args["value"]
946 return value.value
947
948
949class Field(Protocol):

Callers 1

render_bodyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected