Skip to content

Commit da36906

Browse files
committed
chore!: Drop support for Python 3.8
1 parent b023caf commit da36906

File tree

5 files changed

+717
-1204
lines changed

5 files changed

+717
-1204
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ check out the [Apify SDK for Python](https://docs.apify.com/sdk/python) instead.
99

1010
## Installation
1111

12-
Requires Python 3.8+
12+
Requires Python 3.9+
1313

1414
You can install the package from its [PyPI listing](https://pypi.org/project/apify-shared).
1515
To do that, simply run `pip install apify-shared` in your terminal.

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.8
2+
python_version = 3.9
33
files = scripts, src, tests
44
check_untyped_defs = True
55
disallow_incomplete_defs = True

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ classifiers = [
1212
"Intended Audience :: Developers",
1313
"License :: OSI Approved :: Apache Software License",
1414
"Operating System :: OS Independent",
15-
"Programming Language :: Python :: 3.8",
1615
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
1918
"Programming Language :: Python :: 3.12",
2019
"Topic :: Software Development :: Libraries",
2120
]
2221

23-
requires-python = ">=3.8"
22+
requires-python = ">=3.9"
2423

2524
# We use inclusive ordered comparison clause for non-Apify packages intentionally in order to enhance the Apify
2625
# packages's compatibility with a wide range of external packages. This decision was discussed in detail in

src/apify_shared/types.py

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

3-
from typing import Any, Dict, List, Union
3+
from typing import Any, Union
44

55
# Type for representing json-serializable values.
66
# It's close enough to the real thing supported by json.parse,
77
# and the best we can do until mypy supports recursive types.
88
# It was suggested in a discussion with (and approved by) Guido van Rossum,
99
# so I'd consider it correct enough.
10-
JSONSerializable = Union[str, int, float, bool, None, Dict[str, Any], List[Any]]
10+
JSONSerializable = Union[str, int, float, bool, None, dict[str, Any], list[Any]]

0 commit comments

Comments
 (0)