]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏️ Fix typo in deprecation warnings in `fastapi/params.py` (#9854)
authorRuss Biggs <russbiggs@gmail.com>
Sat, 5 Aug 2023 08:41:21 +0000 (02:41 -0600)
committerGitHub <noreply@github.com>
Sat, 5 Aug 2023 08:41:21 +0000 (10:41 +0200)
fix typo for deprecation warnings depreacated -> deprecated

fastapi/params.py

index 30af5713e73e47ae4949c369a1fa35581028e556..2d8100650e49202758b6f906ae0e7125bbee3600 100644 (file)
@@ -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,
             )