fastapi-extra 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/PKG-INFO +1 -1
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/__init__.py +1 -1
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/_patch.py +6 -5
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra.egg-info/PKG-INFO +1 -1
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/LICENSE +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/README.rst +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/cache/__init__.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/cache/redis.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/cursor.pyi +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/database/__init__.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/database/model.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/database/service.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/database/session.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/dependency.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/form.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/native/cursor.pyx +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/native/routing.pyx +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/native/urlparse.pyx +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/py.typed +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/response.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/routing.pyi +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/settings.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/types.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/urlparse.pyi +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra/utils.py +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra.egg-info/SOURCES.txt +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra.egg-info/dependency_links.txt +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra.egg-info/requires.txt +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/fastapi_extra.egg-info/top_level.txt +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/pyproject.toml +0 -0
- {fastapi_extra-0.3.2 → fastapi_extra-0.3.3}/setup.cfg +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
__author__ = "ziyan.yin"
|
|
2
2
|
__date__ = "2026-01-13"
|
|
3
3
|
|
|
4
|
+
import functools
|
|
5
|
+
from typing import Any
|
|
4
6
|
|
|
5
7
|
from fastapi import FastAPI
|
|
6
|
-
from fastapi._compat import
|
|
8
|
+
from fastapi._compat import shared
|
|
7
9
|
from starlette import datastructures
|
|
8
10
|
|
|
9
11
|
from fastapi_extra import routing
|
|
@@ -14,10 +16,9 @@ def install_routes(app: FastAPI) -> None:
|
|
|
14
16
|
routing.install(app)
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return getattr(field, "_is_sequence")
|
|
19
|
+
@functools.lru_cache
|
|
20
|
+
def is_sequence_field(annotation: type[Any]) -> bool:
|
|
21
|
+
return shared.field_annotation_is_sequence(annotation)
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
def query_params_init(obj: datastructures.QueryParams, *args, **kwargs) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|