Skip to content

Commit 4721621

Browse files
keyz182ZipFile
andauthored
Update tests/unit/samples/wiringcython/cythonmodule.pyx
Co-authored-by: ZipFile <lin.aaa.lin@gmail.com>
1 parent ce9a94e commit 4721621

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

tests/unit/samples/wiringcython/cythonmodule.pyx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
# cython: language_level=3, binding=True, embedsignature=True, annotation_typing=False
2-
"""Cython-compiled fixture exercising wire() against compiled handlers.
3-
4-
Compiled by tests/unit/wiring/conftest.py::pytest_configure with the four
5-
directives FastAPI / dependency-injector codebases require:
6-
7-
binding=True — preserve descriptor semantics (so inspect.signature
8-
+ DI introspection work)
9-
embedsignature=True — embed Python-style signature for inspect.signature
10-
annotation_typing=False — annotations stay informational; do NOT generate
11-
C-level isinstance checks against parameter defaults
12-
(the FastAPI `param: str = Header(...)` pattern
13-
relies on this)
14-
language_level=3 — pure Python 3 semantics
15-
16-
Exercises every call shape the wiring discovery pass dispatches on:
17-
18-
- sync def at module level -> _get_sync_patched
19-
- async def at module level -> _get_async_patched
20-
- async def with yield (async generator) -> _get_async_gen_patched
21-
- class with async def __call__ -> _patch_method
22-
"""
232

243
from dependency_injector.wiring import Provide
254

0 commit comments

Comments
 (0)