@@ -43,7 +43,6 @@ def __getitem__(self, args: Any) -> Any:
4343 Cookie = Annotated [T , param_functions .Cookie ()]
4444 File = Annotated [T , param_functions .File ()]
4545 Form = Annotated [T , param_functions .Form ()]
46- Header = Annotated [T , param_functions .Header ()]
4746 Path = Annotated [T , param_functions .Path ()]
4847 Query = Annotated [T , param_functions .Query ()]
4948 # mypy does not like to extend already annotated params
@@ -52,15 +51,13 @@ def __getitem__(self, args: Any) -> Any:
5251 from typing_extensions import Annotated as CookieEx
5352 from typing_extensions import Annotated as FileEx
5453 from typing_extensions import Annotated as FormEx
55- from typing_extensions import Annotated as HeaderEx
5654 from typing_extensions import Annotated as PathEx
5755 from typing_extensions import Annotated as QueryEx
5856else :
5957 Body = ParamShortcut (param_functions .Body )
6058 Cookie = ParamShortcut (param_functions .Cookie )
6159 File = ParamShortcut (param_functions .File )
6260 Form = ParamShortcut (param_functions .Form )
63- Header = ParamShortcut (param_functions .Header )
6461 Path = ParamShortcut (param_functions .Path )
6562 Query = ParamShortcut (param_functions .Query )
6663 # mypy does not like to extend already annotated params
@@ -69,11 +66,14 @@ def __getitem__(self, args: Any) -> Any:
6966 CookieEx = Cookie
7067 FileEx = File
7168 FormEx = Form
72- HeaderEx = Header
7369 PathEx = Path
7470 QueryEx = Query
7571
7672
73+ Header = ParamShortcut (param_functions .Header )
74+ HeaderEx = Header
75+
76+
7777def P (
7878 * ,
7979 alias : Optional [str ] = None ,
0 commit comments