MCPcopy Create free account
hub / github.com/ipython/traitlets / _get_default

Function _get_default

traitlets/utils/decorators.py:11–13  ·  view source on GitHub ↗

Get default argument value, given the trait default value.

(value: Any)

Source from the content-addressed store, hash-verified

9
10
11def _get_default(value: Any) -> Any:
12 """Get default argument value, given the trait default value."""
13 return Parameter.empty if value == Undefined else value
14
15
16T = TypeVar("T", bound=HasTraits)

Callers 1

signature_has_traitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…