Skip to content

Commit

Permalink
fixing type hint from JsonResponse#data
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymiz committed Aug 23, 2023
1 parent 09edc80 commit e4461b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deez/response.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import abstractmethod
from typing import Any, Dict, Union, Tuple
from typing import Any, Dict, List, Union, Tuple

from deez.contrib.serialization import json_dumps

Expand Down Expand Up @@ -35,7 +35,7 @@ def render(self, *args: Tuple[Any], **kwargs: Dict[str, Any]) -> None:
class JsonResponse(BaseResponse):
def __init__(
self,
data: Union[Dict[str, Any], None] = None,
data: Union[Dict[str, Any], List[Any], None] = None,
status_code: int = 200,
headers: Union[Dict[str, Any], None] = None,
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deez"
version = "1.0.3"
version = "1.0.4"
description = "A little library to simplify building small APIs on top of API Gateway and Lambda."
authors = ["Lemuel Boyce <[email protected]>", "Daniel Brady <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit e4461b8

Please sign in to comment.