File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def get_packages(package):
2929 "starlette<=1" ,
3030 "apispec<3" ,
3131 ],
32- version = "0.0.7 " ,
32+ version = "0.0.8 " ,
3333 url = "https://github.com/slv0/start_resty" ,
3434 license = "BSD" ,
3535 description = "The web framework" ,
Original file line number Diff line number Diff line change 1111P = TypeVar ('P' )
1212
1313
14- def json_schema (schema : Union [Schema , Type [Schema ]], cls : P ,
14+ def json_schema (schema : Union [Schema , Type [Schema ]], cls : Type [ P ] ,
1515 unknown : str = EXCLUDE ) -> P :
1616 return types .new_class ('QueryInputParams' , (cls ,),
1717 exec_body = set_parser (JsonParser .create (schema , unknown = unknown )))
1818
1919
20- def json_payload (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Type [ Mapping ] :
20+ def json_payload (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Mapping :
2121 return json_schema (schema , Mapping , unknown = unknown )
2222
2323
Original file line number Diff line number Diff line change 1111P = TypeVar ('P' )
1212
1313
14- def path_schema (schema : Union [Schema , Type [Schema ]], cls : P ,
14+ def path_schema (schema : Union [Schema , Type [Schema ]], cls : Type [ P ] ,
1515 unknown = EXCLUDE ) -> P :
1616 return types .new_class ('PathInputParams' , (cls ,),
1717 exec_body = set_parser (PathParser .create (schema , unknown = unknown )))
1818
1919
20- def path (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Type [ Mapping ] :
20+ def path (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Mapping :
2121 return path_schema (schema , Mapping , unknown = unknown )
2222
2323
Original file line number Diff line number Diff line change 1212Q = TypeVar ('Q' )
1313
1414
15- def query_schema (schema : Union [Schema , Type [Schema ]], cls : Q ,
15+ def query_schema (schema : Union [Schema , Type [Schema ]], cls : Type [ Q ] ,
1616 unknown = EXCLUDE ) -> Q :
1717 return types .new_class ('QueryInputParams' , (cls ,),
1818 exec_body = set_parser (QueryParser .create (schema , unknown = unknown )))
1919
2020
21- def query (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Type [ Mapping ] :
21+ def query (schema : Union [Schema , Type [Schema ]], unknown = EXCLUDE ) -> Mapping :
2222 return query_schema (schema , Mapping , unknown = unknown )
2323
2424
You can’t perform that action at this time.
0 commit comments