mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo on dependencies utils and cleanup unused variable (#1912)
This commit is contained in:
parent
9fcec3abe9
commit
b299792ebf
|
|
@ -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__(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue