From: Russ Biggs Date: Sat, 5 Aug 2023 08:41:21 +0000 (-0600) Subject: ✏️ Fix typo in deprecation warnings in `fastapi/params.py` (#9854) X-Git-Tag: 0.101.1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdd991244d4ff1393725996ac15425857e643c6f;p=thirdparty%2Ffastapi%2Ffastapi.git ✏️ Fix typo in deprecation warnings in `fastapi/params.py` (#9854) fix typo for deprecation warnings depreacated -> deprecated --- diff --git a/fastapi/params.py b/fastapi/params.py index 30af5713e7..2d8100650e 100644 --- a/fastapi/params.py +++ b/fastapi/params.py @@ -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, )