From: Marcelo Trylesinski Date: Thu, 5 Nov 2020 21:09:17 +0000 (+0100) Subject: ✏️ Fix typo on dependencies utils and cleanup unused variable (#1912) X-Git-Tag: 0.61.2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b299792ebf4e5b35a5b73d48015e332dd0af4cfa;p=thirdparty%2Ffastapi%2Ffastapi.git ✏️ Fix typo on dependencies utils and cleanup unused variable (#1912) --- diff --git a/fastapi/dependencies/models.py b/fastapi/dependencies/models.py index 5aff1de3ba..4e2294bd79 100644 --- a/fastapi/dependencies/models.py +++ b/fastapi/dependencies/models.py @@ -3,8 +3,6 @@ from typing import Callable, List, Optional, Sequence from fastapi.security.base import SecurityBase from pydantic.fields import ModelField -param_supported_types = (str, int, float, bool) - class SecurityRequirement: def __init__( diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 7c9f7e8471..35329a46a5 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -94,7 +94,7 @@ def check_file_field(field: ModelField) -> None: assert __version__ try: - # parse_options_header is only available in the right multlipart + # parse_options_header is only available in the right multipart from multipart.multipart import parse_options_header assert parse_options_header