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

Function Default

typer/models.py:190–197  ·  view source on GitHub ↗

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 """
192 You shouldn't use this function directly.
193
194 It's used internally to recognize when a default value has been overwritten, even
195 if the new value is `None`.
196 """
197 return DefaultPlaceholder(value) # 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…