From: Derek J. Lambert Date: Tue, 14 May 2019 18:04:18 +0000 (-0500) Subject: :pencil2: Minor spelling fix in routing (#221) X-Git-Tag: 0.21.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a1648b04e74b5943f3ffadf92737f7d9c8201af;p=thirdparty%2Ffastapi%2Ffastapi.git :pencil2: Minor spelling fix in routing (#221) --- diff --git a/fastapi/routing.py b/fastapi/routing.py index 8f8541c3d5..a027b0b078 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: