Skip to content

Commit c8810e2

Browse files
authored
Drop support for Python 3.9 (#268)
1 parent c16587b commit c8810e2

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- "3.12"
2424
- "3.11"
2525
- "3.10"
26-
- "3.9"
2726
os: [windows-latest, macos-latest, ubuntu-latest]
2827

2928
steps:

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ license = "MIT"
1616
license-files = [ "LICENCE" ]
1717
maintainers = [ { name = "Hugo van Kemenade" } ]
1818
authors = [ { name = "Jason Moiron", email = "jmoiron@jmoiron.net" } ]
19-
requires-python = ">=3.9"
19+
requires-python = ">=3.10"
2020
classifiers = [
2121
"Development Status :: 5 - Production/Stable",
2222
"Intended Audience :: Developers",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",

src/humanize/number.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99

1010
TYPE_CHECKING = False
1111
if TYPE_CHECKING:
12-
import sys
13-
14-
if sys.version_info >= (3, 10):
15-
from typing import TypeAlias
16-
else:
17-
from typing_extensions import TypeAlias
12+
from typing import TypeAlias
1813

1914
# This type can be better defined by typing.SupportsFloat
2015
# but that's a Python 3.8 only typing option.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env_list =
55
docs
66
lint
77
mypy
8-
py{py3, 314, 313, 312, 311, 310, 39}
8+
py{py3, 314, 313, 312, 311, 310}
99

1010
[testenv]
1111
extras =

0 commit comments

Comments
 (0)