Skip to content

Commit

Permalink
Fix: Fixed typing for old python
Browse files Browse the repository at this point in the history
  • Loading branch information
felixnext committed May 25, 2024
1 parent de21584 commit c7a80a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functown/serialization/hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
self,
func=None,
pb_class: tp.Any = None,
headers: tp.Optional[dict[str, str]] = None,
headers: tp.Optional[tp.Dict[str, str]] = None,
status_code: int = 200,
allow_json: tp.Optional[bool] = None,
json_all_fields: bool = True,
Expand All @@ -65,7 +65,7 @@ def __init__(

def serialize(
self, req: HttpRequest, res: tp.Any, *args, **kwargs
) -> tuple[tp.Union[bytes, str], str]:
) -> tp.Tuple[tp.Union[bytes, str], str]:
# check for request header
mime_raw = RequestArgHandler(req).get_header(
HeaderEnum.CONTENT_TYPE, required=False
Expand Down

0 comments on commit c7a80a0

Please sign in to comment.