Skip to content

Commit d287d2d

Browse files
authored
Drop support for Python 3.8 (#351)
1 parent ee299b2 commit d287d2d

File tree

5 files changed

+38
-306
lines changed

5 files changed

+38
-306
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1515
steps:
1616
- uses: actions/checkout@v4
1717

mangum/handlers/alb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Generator
34
from itertools import islice
4-
from typing import Any, Generator
5+
from typing import Any
56
from urllib.parse import unquote, unquote_plus, urlencode
67

78
from mangum.handlers.utils import (

mangum/types.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
from __future__ import annotations
22

3-
from typing import (
4-
Any,
5-
Awaitable,
6-
Callable,
7-
Dict,
8-
List,
9-
MutableMapping,
10-
Sequence,
11-
Union,
12-
)
3+
from collections.abc import Awaitable, MutableMapping, Sequence
4+
from typing import Any, Callable, Union
135

146
from typing_extensions import Literal, Protocol, TypeAlias, TypedDict
157

16-
LambdaEvent = Dict[str, Any]
8+
LambdaEvent = dict[str, Any]
179
QueryParams: TypeAlias = MutableMapping[str, Union[str, Sequence[str]]]
1810

1911

@@ -92,7 +84,7 @@ def get_remaining_time_in_millis(self) -> int:
9284
... # pragma: no cover
9385

9486

95-
Headers: TypeAlias = List[List[bytes]]
87+
Headers: TypeAlias = list[list[bytes]]
9688
Message: TypeAlias = MutableMapping[str, Any]
9789
Scope: TypeAlias = MutableMapping[str, Any]
9890
Receive: TypeAlias = Callable[[], Awaitable[Message]]

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ authors = [
1111
]
1212
description = "AWS Lambda support for ASGI applications"
1313
readme = "README.md"
14-
requires-python = ">=3.7"
14+
requires-python = ">=3.9"
1515
classifiers = [
1616
"License :: OSI Approved :: MIT License",
1717
"Operating System :: OS Independent",
1818
"Programming Language :: Python",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
@@ -33,8 +32,7 @@ dev-dependencies = [
3332
"ruff",
3433
"starlette",
3534
"quart",
36-
"hypercorn<0.15.0; python_version < '3.8'",
37-
"hypercorn>=0.15.0; python_version >= '3.8'",
35+
"hypercorn>=0.15.0",
3836
"mypy",
3937
"brotli",
4038
"brotli-asgi",

0 commit comments

Comments
 (0)