39 field_annotation_is_sequence,
40 get_cached_model_fields,
41▶ get_missing_field_error,
42 is_bytes_or_nonable_bytes_annotation,
43 is_bytes_sequence_annotation,
· · ·
56)
57from fastapi.dependencies.models import Dependant
58▶from fastapi.exceptions import DependencyScopeError
59from fastapi.logger import logger
60from fastapi.security.oauth2 import SecurityScopes
· · ·
77from typing_inspection.typing_objects import is_typealiastype
78
79▶multipart_not_installed_error = (
80 'Form data requires "python-multipart" to be installed. \n'
81 'You can install "python-multipart" with: \n\n'
· · ·
82 "pip install python-multipart\n"
83)
84▶multipart_incorrect_install_error = (
85 'Form data requires "python-multipart" to be installed. '
86 'It seems you installed "multipart" instead. \n'
· · ·
98 # Import an attribute that can be mocked/deleted in testing
99 assert __version__ > "0.0.12"
100▶ except (ImportError, AssertionError):
101 try:
102 # __version__ is available in both multiparts, and can be mocked
+ 38 more matches in this file