]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:pencil2: Minor spelling fix in routing (#221)
authorDerek J. Lambert <dlambert@dereklambert.com>
Tue, 14 May 2019 18:04:18 +0000 (13:04 -0500)
committerSebastián Ramírez <tiangolo@gmail.com>
Tue, 14 May 2019 18:04:18 +0000 (22:04 +0400)
fastapi/routing.py

index 8f8541c3d5ee483a2b0ca5ba6d441951d00c5866..a027b0b07897a6db0c89adcfac06f83a545316f5 100644 (file)
@@ -43,7 +43,7 @@ def get_app(
     response_class: Type[Response] = JSONResponse,
     response_field: Field = None,
 ) -> Callable:
-    assert dependant.call is not None, "dependant.call must me a function"
+    assert dependant.call is not None, "dependant.call must be a function"
     is_coroutine = asyncio.iscoroutinefunction(dependant.call)
     is_body_form = body_field and isinstance(body_field.schema, params.Form)
 
@@ -71,7 +71,7 @@ def get_app(
                 status_code=HTTP_422_UNPROCESSABLE_ENTITY, detail=errors_out.errors()
             )
         else:
-            assert dependant.call is not None, "dependant.call must me a function"
+            assert dependant.call is not None, "dependant.call must be a function"
             if is_coroutine:
                 raw_response = await dependant.call(**values)
             else: