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

Function get_default_address

sdk/python/src/dagger/mod/_utils.py:123–126  ·  view source on GitHub ↗

Get the last DefaultAddress() of an annotated type.

(obj: Any)

Source from the content-addressed store, hash-verified

121
122
123def get_default_address(obj: Any) -> str | None:
124 """Get the last DefaultAddress() of an annotated type."""
125 meta = get_meta(obj, DefaultAddress)
126 return meta.address if meta else None
127
128
129def get_alt_name(annotation: type) -> str | None:

Callers 1

_make_parameterMethod · 0.90

Calls 1

get_metaFunction · 0.85

Tested by

no test coverage detected