Skip to content

Commit ec761db

Browse files
Remove redundant cast and drop Python 3.9 support (#144)
* Remove redundant cast * Drop Python 3.9 support, as it's EOL. Ref: https://devguide.python.org/versions/#supported-versions
1 parent c7f72f2 commit ec761db

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
strategy:
2626
matrix:
2727
include:
28-
- python-version: "3.9"
29-
tox-target: py39
3028
- python-version: "3.10"
3129
tox-target: py310
3230
- python-version: "3.11"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
authors = [
2727
{ name = "S.Lott", email = "[email protected]" }
2828
]
29-
requires-python = ">=3.9"
29+
requires-python = ">=3.10"
3030

3131
dependencies = [
3232
# 3.13 needs at least this version, which started publishing wheels for Python 3.13.
@@ -78,7 +78,7 @@ dev = [
7878
]
7979

8080
[tool.tox]
81-
envlist = ["py39", "py310", "py311", "py312", "py313", "lint", "tools"]
81+
envlist = ["py310", "py311", "py312", "py313", "lint", "tools"]
8282
minversion = "4.24.0"
8383

8484
[tool.tox.env_run_base]

src/celpy/celtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def __new__(
441441
cast(bytes, source.get(StringType("value"))),
442442
)
443443
elif isinstance(source, Iterable):
444-
return super().__new__(cls, cast(Iterable[int], source))
444+
return super().__new__(cls, source)
445445
else:
446446
raise TypeError(f"Invalid initial value type: {type(source)}")
447447

0 commit comments

Comments
 (0)