Browse Source

✏️ Fix typo on dependencies utils and cleanup unused variable (#1912)

pull/2102/head
Marcelo Trylesinski 4 years ago
committed by GitHub
parent
commit
b299792ebf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      fastapi/dependencies/models.py
  2. 2
      fastapi/dependencies/utils.py

2
fastapi/dependencies/models.py

@ -3,8 +3,6 @@ from typing import Callable, List, Optional, Sequence
from fastapi.security.base import SecurityBase from fastapi.security.base import SecurityBase
from pydantic.fields import ModelField from pydantic.fields import ModelField
param_supported_types = (str, int, float, bool)
class SecurityRequirement: class SecurityRequirement:
def __init__( def __init__(

2
fastapi/dependencies/utils.py

@ -94,7 +94,7 @@ def check_file_field(field: ModelField) -> None:
assert __version__ assert __version__
try: 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 from multipart.multipart import parse_options_header
assert parse_options_header assert parse_options_header

Loading…
Cancel
Save