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

Function Default

typer/models.py:190–197  ·  typer/models.py::Default

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

(value: DefaultType)

Source from the content-addressed store, hash-verified

188
189
190def Default(value: DefaultType) -> DefaultType:
191 class="st">"""
192 You shouldn&class="cm">#x27;t use this function directly.
193
194 It&class="cm">#x27;s used internally to recognize when a default value has been overwritten, even
195 if the new value is `None`.
196 class="st">"""
197 return DefaultPlaceholder(value) class="cm"># type: ignore
198
199
200class CommandInfo:

Callers 5

__init__Method · 0.85
__init__Method · 0.85
callbackMethod · 0.85
commandMethod · 0.85
add_typerMethod · 0.85

Calls 1

DefaultPlaceholderClass · 0.85

Tested by

no test coverage detected