Skip to content

Commit ce9a94e

Browse files
keyz182ZipFile
andauthored
Update docs/wiring.rst
Co-authored-by: ZipFile <lin.aaa.lin@gmail.com>
1 parent 74754f6 commit ce9a94e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

docs/wiring.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,6 @@ extensions for a FastAPI / dependency-injector codebase:
685685
"language_level": 3,
686686
"binding": True,
687687
"embedsignature": True,
688-
# Keep annotation_typing=False for FastAPI handlers using
689-
# `param: str = Header(...)` / `dep: Service = Depends(...)`:
690-
# with annotation_typing=True (the Cython 3.x default!) Cython
691-
# generates a C-level isinstance check against the default
692-
# sentinel and raises `TypeError: Expected str, got Header` at
693-
# import time.
694-
"annotation_typing": False,
695688
},
696689
)
697690

0 commit comments

Comments
 (0)