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

Method structure

sdk/python/src/dagger/mod/_module.py:466–468  ·  view source on GitHub ↗

Convert a primitive value to the expected type.

(self, obj: Any, cl: type[T])

Source from the content-addressed store, hash-verified

464 return result
465
466 async def structure(self, obj: Any, cl: type[T]) -> T:
467 """Convert a primitive value to the expected type."""
468 return await asyncify(self._converter.structure, obj, cl)
469
470 async def unstructure(self, obj: Any, unstructure_as: Any) -> Awaitable[Any]:
471 """Convert a result to primitive values."""

Callers 6

_get_parent_instanceMethod · 0.95
_convert_inputsMethod · 0.95
get_valueMethod · 0.80
_structFunction · 0.80
test_enum_structureFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_enum_structureFunction · 0.64