mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
replace U+2019 with U+0027 in docstrings (#4714)
This commit is contained in:
committed by
GitHub
parent
594effa279
commit
c381e5b73e
+2
-2
@@ -265,7 +265,7 @@ def Field(
|
||||
Used to provide extra information about a field, either for the model schema or complex validation. Some arguments
|
||||
apply only to number fields (``int``, ``float``, ``Decimal``) and some apply only to ``str``.
|
||||
|
||||
:param default: since this is replacing the field’s default, its first argument is used
|
||||
:param default: since this is replacing the field's default, its first argument is used
|
||||
to set the default, use ellipsis (``...``) to indicate the field is required
|
||||
:param default_factory: callable that will be called when a default value is needed for this field
|
||||
If both `default` and `default_factory` are set, an error is raised.
|
||||
@@ -379,7 +379,7 @@ def PrivateAttr(
|
||||
|
||||
Private attrs are stored in model __slots__.
|
||||
|
||||
:param default: the attribute’s default value
|
||||
:param default: the attribute's default value
|
||||
:param default_factory: callable that will be called when a default value is needed for this attribute
|
||||
If both `default` and `default_factory` are set, an error is raised.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user