MCPcopy
hub / github.com/fastapi/typer / DefaultPlaceholder

Class DefaultPlaceholder

typer/models.py:170–182  ·  view source on GitHub ↗

You shouldn't use this class directly. It's used internally to recognize when a default value has been overwritten, even if the new value is `None`.

Source from the content-addressed store, hash-verified

168
169
170class DefaultPlaceholder:
171 """
172 You shouldn't use this class directly.
173
174 It's used internally to recognize when a default value has been overwritten, even
175 if the new value is `None`.
176 """
177
178 def __init__(self, value: Any):
179 self.value = value
180
181 def __bool__(self) -> bool:
182 return bool(self.value)
183
184
185DefaultType = TypeVar("DefaultType")

Callers 1

DefaultFunction · 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…