Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mangum/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from mangum.protocols.http import HTTPCycle
from mangum.exceptions import ConfigurationError

if typing.TYPE_CHECKING: # pragma: no cover
from awslambdaric.lambda_context import LambdaContext

DEFAULT_TEXT_MIME_TYPES = [
"application/json",
Expand Down Expand Up @@ -79,7 +81,7 @@ def __post_init__(self, text_mime_types: typing.Optional[typing.List[str]]) -> N
text_mime_types = DEFAULT_TEXT_MIME_TYPES
self.text_mime_types = text_mime_types

def __call__(self, event: dict, context: dict) -> dict:
def __call__(self, event: dict, context: "LambdaContext") -> dict:
self.logger.debug("Event received.")

with ExitStack() as stack:
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ moto
mypy
brotli
brotli-asgi
awslambdaric-stubs
# Docs
mkdocs
mkdocs-material
mkdocs-material