Skip to content

Commit b32ab41

Browse files
author
vvcheremushkin
committed
fix types
1 parent d0f4e71 commit b32ab41

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

star_resty/types/json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
P = 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

star_resty/types/path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
P = 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

star_resty/types/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
Q = 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

0 commit comments

Comments
 (0)