11# This file is automatically generated by pyo3_stub_gen
2- # ruff: noqa: E501, F401
2+ # ruff: noqa: E501, F401, F403, F405
33
44import builtins
55import enum
66import typing
7- from oxapy .templating import Template
87from . import exceptions
98from . import jwt
109from . import serializer
1110from . import templating
11+ __all__ = [
12+ "Catcher" ,
13+ "CatcherBuilder" ,
14+ "Cors" ,
15+ "File" ,
16+ "FileStreaming" ,
17+ "HttpServer" ,
18+ "Redirect" ,
19+ "Request" ,
20+ "Response" ,
21+ "Route" ,
22+ "Router" ,
23+ "Session" ,
24+ "SessionStore" ,
25+ "Status" ,
26+ "catcher" ,
27+ "convert_to_response" ,
28+ "delete" ,
29+ "exceptions" ,
30+ "get" ,
31+ "head" ,
32+ "jwt" ,
33+ "options" ,
34+ "patch" ,
35+ "post" ,
36+ "put" ,
37+ "render" ,
38+ "send_file" ,
39+ "serializer" ,
40+ "static_file" ,
41+ "templating" ,
42+ ]
1243
1344@typing .final
1445class Catcher :
@@ -87,7 +118,7 @@ class Cors:
87118 List of allowed origins, default is ["*"] (all origins)
88119 """
89120 @origins .setter
90- def origins (self , value : builtins . list [builtins .str ]) -> None :
121+ def origins (self , value : typing . Sequence [builtins .str ]) -> None :
91122 r"""
92123 List of allowed origins, default is ["*"] (all origins)
93124 """
@@ -97,7 +128,7 @@ class Cors:
97128 List of allowed HTTP methods, default includes common methods
98129 """
99130 @methods .setter
100- def methods (self , value : builtins . list [builtins .str ]) -> None :
131+ def methods (self , value : typing . Sequence [builtins .str ]) -> None :
101132 r"""
102133 List of allowed HTTP methods, default includes common methods
103134 """
@@ -107,7 +138,7 @@ class Cors:
107138 List of allowed HTTP headers, default includes common headers
108139 """
109140 @headers .setter
110- def headers (self , value : builtins . list [builtins .str ]) -> None :
141+ def headers (self , value : typing . Sequence [builtins .str ]) -> None :
111142 r"""
112143 List of allowed HTTP headers, default includes common headers
113144 """
@@ -476,7 +507,7 @@ class HttpServer:
476507 server.session_store(SessionStore())
477508 ```
478509 """
479- def template (self , template : Template ) -> HttpServer :
510+ def template (self , template : templating . Template ) -> HttpServer :
480511 r"""
481512 Enable template rendering for the server.
482513
0 commit comments