From 4a1648b04e74b5943f3ffadf92737f7d9c8201af Mon Sep 17 00:00:00 2001 From: "Derek J. Lambert" Date: Tue, 14 May 2019 13:04:18 -0500 Subject: [PATCH] :pencil2: Minor spelling fix in routing (#221) --- fastapi/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 8f8541c3d..a027b0b07 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -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: