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

Function get_default_path

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

Get the last DefaultPath() of an annotated type.

(obj: Any)

Source from the content-addressed store, hash-verified

115
116
117def get_default_path(obj: Any) -> ContextPath | None:
118 """Get the last DefaultPath() of an annotated type."""
119 meta = get_meta(obj, DefaultPath)
120 return meta.from_context if meta else None
121
122
123def get_default_address(obj: Any) -> str | None:

Callers 1

_make_parameterMethod · 0.90

Calls 1

get_metaFunction · 0.85

Tested by

no test coverage detected