mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-12 05:26:45 +00:00
✏️ Fix typo on docstring in datastructures file (#2887)
This commit is contained in:
parent
bcd06fdfdf
commit
1ce7258a01
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ class DefaultPlaceholder:
|
||||||
You shouldn't use this class directly.
|
You shouldn't use this class directly.
|
||||||
|
|
||||||
It's used internally to recognize when a default value has been overwritten, even
|
It's used internally to recognize when a default value has been overwritten, even
|
||||||
if the overriden default value was truthy.
|
if the overridden default value was truthy.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, value: Any):
|
def __init__(self, value: Any):
|
||||||
|
|
@ -42,6 +42,6 @@ def Default(value: DefaultType) -> DefaultType:
|
||||||
You shouldn't use this function directly.
|
You shouldn't use this function directly.
|
||||||
|
|
||||||
It's used internally to recognize when a default value has been overwritten, even
|
It's used internally to recognize when a default value has been overwritten, even
|
||||||
if the overriden default value was truthy.
|
if the overridden default value was truthy.
|
||||||
"""
|
"""
|
||||||
return DefaultPlaceholder(value) # type: ignore
|
return DefaultPlaceholder(value) # type: ignore
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue