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

Class DefaultPlaceholder

typer/models.py:170–182  ·  typer/models.py::DefaultPlaceholder

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 class="st">"""
172 You shouldn&class="cm">#x27;t use this class directly.
173
174 It&class="cm">#x27;s used internally to recognize when a default value has been overwritten, even
175 if the new value is `None`.
176 class="st">"""
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(class="st">"DefaultType")

Callers 1

DefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected