Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/14201/head
pre-commit-ci[bot] 9 months ago
parent
commit
b91a88a983
  1. 24
      fastapi/_compat/v1.pyi
  2. 20
      fastapi/_compat/v2.pyi

24
fastapi/_compat/v1.pyi

@ -21,9 +21,19 @@ def _model_dump(
) -> Any: ... ) -> Any: ...
def _get_model_config(model: Any) -> Any: ... def _get_model_config(model: Any) -> Any: ...
def _normalize_errors(errors: Any) -> Any: ... def _normalize_errors(errors: Any) -> Any: ...
def _regenerate_error_with_loc(*, errors: Any, loc_prefix: Tuple[Any, ...]) -> List[Dict[str, Any]]: ... def _regenerate_error_with_loc(
def get_schema_from_model_field(*, field: Any, model_name_map: Any, field_mapping: Any, separate_input_output_schemas: bool=True) -> Dict[str, Any]: ... *, errors: Any, loc_prefix: Tuple[Any, ...]
def get_definitions(*, fields: Any, model_name_map: Any, separate_input_output_schemas: bool=True) -> Tuple[Any, Dict[str, Dict[str, Any]]]: ... ) -> List[Dict[str, Any]]: ...
def get_schema_from_model_field(
*,
field: Any,
model_name_map: Any,
field_mapping: Any,
separate_input_output_schemas: bool = True,
) -> Dict[str, Any]: ...
def get_definitions(
*, fields: Any, model_name_map: Any, separate_input_output_schemas: bool = True
) -> Tuple[Any, Dict[str, Dict[str, Any]]]: ...
def get_model_fields(model: Any) -> List[Any]: ... def get_model_fields(model: Any) -> List[Any]: ...
def is_bytes_field(field: Any) -> bool: ... def is_bytes_field(field: Any) -> bool: ...
def is_bytes_sequence_field(field: Any) -> bool: ... def is_bytes_sequence_field(field: Any) -> bool: ...
@ -32,8 +42,12 @@ def is_scalar_sequence_field(field: Any) -> bool: ...
def is_sequence_field(field: Any) -> bool: ... def is_sequence_field(field: Any) -> bool: ...
def copy_field_info(field_info: Any, annotation: Any, **kwargs: Any) -> Any: ... def copy_field_info(field_info: Any, annotation: Any, **kwargs: Any) -> Any: ...
def create_body_model(fields: Any, model_name: str) -> Any: ... def create_body_model(fields: Any, model_name: str) -> Any: ...
def evaluate_forwardref(type_: Any, globalns: Dict[str, Any], localns: Dict[str, Any]) -> Any: ... def evaluate_forwardref(
def get_annotation_from_field_info(annotation: Any, field_info: Any, field_name: str) -> Any: ... type_: Any, globalns: Dict[str, Any], localns: Dict[str, Any]
) -> Any: ...
def get_annotation_from_field_info(
annotation: Any, field_info: Any, field_name: str
) -> Any: ...
def get_missing_field_error(loc: Tuple[str, ...], field: Any) -> Dict[str, Any]: ... def get_missing_field_error(loc: Tuple[str, ...], field: Any) -> Dict[str, Any]: ...
def serialize_sequence_value(*, field: Any, value: Any) -> Any: ... def serialize_sequence_value(*, field: Any, value: Any) -> Any: ...
def with_info_plain_validator_function(func: Any) -> Any: ... def with_info_plain_validator_function(func: Any) -> Any: ...

20
fastapi/_compat/v2.pyi

@ -12,15 +12,27 @@ class Validator: ...
def _is_model_class(value: Any) -> bool: ... def _is_model_class(value: Any) -> bool: ...
def _model_rebuild(model: Any) -> None: ... def _model_rebuild(model: Any) -> None: ...
def evaluate_forwardref(type_: Any, globalns: Dict[str, Any], localns: Dict[str, Any]) -> Any: ... def evaluate_forwardref(
type_: Any, globalns: Dict[str, Any], localns: Dict[str, Any]
) -> Any: ...
def _get_model_config(model: Any) -> Any: ... def _get_model_config(model: Any) -> Any: ...
def _model_dump(model: Any, **kwargs: Any) -> Any: ... def _model_dump(model: Any, **kwargs: Any) -> Any: ...
def copy_field_info(field_info: Any, annotation: Any, **kwargs: Any) -> Any: ... def copy_field_info(field_info: Any, annotation: Any, **kwargs: Any) -> Any: ...
def create_body_model(fields: Any, model_name: str) -> Any: ... def create_body_model(fields: Any, model_name: str) -> Any: ...
def get_annotation_from_field_info(annotation: Any, field_info: Any, field_name: str) -> Any: ... def get_annotation_from_field_info(
def get_definitions(*, fields: Any, model_name_map: Any, separate_input_output_schemas: bool=True) -> Tuple[Any, Dict[str, Dict[str, Any]]]: ... annotation: Any, field_info: Any, field_name: str
) -> Any: ...
def get_definitions(
*, fields: Any, model_name_map: Any, separate_input_output_schemas: bool = True
) -> Tuple[Any, Dict[str, Dict[str, Any]]]: ...
def get_missing_field_error(loc: Tuple[str, ...], field: Any) -> Dict[str, Any]: ... def get_missing_field_error(loc: Tuple[str, ...], field: Any) -> Dict[str, Any]: ...
def get_schema_from_model_field(*, field: Any, model_name_map: Any, field_mapping: Any, separate_input_output_schemas: bool=True) -> Dict[str, Any]: ... def get_schema_from_model_field(
*,
field: Any,
model_name_map: Any,
field_mapping: Any,
separate_input_output_schemas: bool = True,
) -> Dict[str, Any]: ...
def is_bytes_field(field: Any) -> bool: ... def is_bytes_field(field: Any) -> bool: ...
def is_bytes_sequence_field(field: Any) -> bool: ... def is_bytes_sequence_field(field: Any) -> bool: ...
def is_scalar_field(field: Any) -> bool: ... def is_scalar_field(field: Any) -> bool: ...

Loading…
Cancel
Save