MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / Default

Function Default

sqlmodel/default.py:25–32  ·  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 overridden default value was truthy.

(value: _TDefaultType)

Source from the content-addressed store, hash-verified

23
24
25def Default(value: _TDefaultType) -> _TDefaultType:
26 """
27 You shouldn't use this function directly.
28
29 It's used internally to recognize when a default value has been overwritten, even
30 if the overridden default value was truthy.
31 """
32 return _DefaultPlaceholder(value) # type: ignore

Callers 4

test_default_boolFunction · 0.90
test_equalityFunction · 0.90
test_not_equalityFunction · 0.90
test_not_equality_otherFunction · 0.90

Calls 1

_DefaultPlaceholderClass · 0.85

Tested by 4

test_default_boolFunction · 0.72
test_equalityFunction · 0.72
test_not_equalityFunction · 0.72
test_not_equality_otherFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…