- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for lenient_issubclass (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
fastapi/_compat/shared.py
return False raise # pragma: no cover def _annotation_is_sequence(annotation: type[Any] | None) -> bool: if lenient_issubclass(annotation, (str, bytes)): return False return lenient_issubclass(annotation, sequence_types) def field_annotation_is_sequence(annotation: type[Any] | None) -> bool: origin = get_origin(annotation)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.9K bytes - Click Count (0) -
fastapi/_compat/__init__.py
) from .shared import ( is_uploadfile_sequence_annotation as is_uploadfile_sequence_annotation, ) from .shared import lenient_issubclass as lenient_issubclass from .shared import sequence_types as sequence_types from .shared import value_is_sequence as value_is_sequence from .v2 import ModelField as ModelField
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 2.1K bytes - Click Count (0) -
fastapi/dependencies/utils.py
) -> bool | None: if lenient_issubclass(type_annotation, Request): dependant.request_param_name = param_name return True elif lenient_issubclass(type_annotation, WebSocket): dependant.websocket_param_name = param_name return True elif lenient_issubclass(type_annotation, HTTPConnection): dependant.http_connection_param_name = param_nameCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 38.7K bytes - Click Count (3) -
fastapi/_compat/v2.py
if origin is not None: for arg in get_args(annotation): if lenient_issubclass(arg, (BaseModel, Enum)): if arg not in known_models: known_models.add(arg) # type: ignore[arg-type] # ty: ignore[unused-ignore-comment] if lenient_issubclass(arg, BaseModel): get_flat_models_from_model(arg, known_models=known_models)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
fastapi/openapi/utils.py
from fastapi import routing from fastapi._compat import ( ModelField, get_definitions, get_flat_models_from_fields, get_model_name_map, get_schema_from_model_field, lenient_issubclass, ) from fastapi.datastructures import DefaultPlaceholder, _Unset from fastapi.dependencies.models import Dependant from fastapi.dependencies.utils import ( _get_flat_fields_from_params, get_flat_dependant,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0) -
docs/en/docs/release-notes.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:07:04 GMT 2026 - 631K bytes - Click Count (0)