mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo in deprecation warnings in `fastapi/params.py` (#9854)
fix typo for deprecation warnings depreacated -> deprecated
This commit is contained in:
parent
69d5ebf34d
commit
bdd991244d
|
|
@ -69,7 +69,7 @@ class Param(FieldInfo):
|
|||
self.deprecated = deprecated
|
||||
if example is not _Unset:
|
||||
warnings.warn(
|
||||
"`example` has been depreacated, please use `examples` instead",
|
||||
"`example` has been deprecated, please use `examples` instead",
|
||||
category=DeprecationWarning,
|
||||
stacklevel=4,
|
||||
)
|
||||
|
|
@ -98,7 +98,7 @@ class Param(FieldInfo):
|
|||
kwargs["examples"] = examples
|
||||
if regex is not None:
|
||||
warnings.warn(
|
||||
"`regex` has been depreacated, please use `pattern` instead",
|
||||
"`regex` has been deprecated, please use `pattern` instead",
|
||||
category=DeprecationWarning,
|
||||
stacklevel=4,
|
||||
)
|
||||
|
|
@ -512,7 +512,7 @@ class Body(FieldInfo):
|
|||
self.deprecated = deprecated
|
||||
if example is not _Unset:
|
||||
warnings.warn(
|
||||
"`example` has been depreacated, please use `examples` instead",
|
||||
"`example` has been deprecated, please use `examples` instead",
|
||||
category=DeprecationWarning,
|
||||
stacklevel=4,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue