Skip to content

Commit 0df8709

Browse files
authored
Remove support for deprecated Python version 3.8 (#230)
Python 3.8 is officially not supported anymore since October 2024. Removing support for this version, allows us to use more modern syntax features and keep the code up to speed with the development of the language.
1 parent 7385683 commit 0df8709

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
strategy:
5252
matrix:
53-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
53+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5454
steps:
5555
- uses: actions/checkout@v4
5656
- name: Set up Python ${{ matrix.python-version }}

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Changelog
55

66
Versions follow `CalVer <http://www.calver.org/>`_ with the scheme ``YY.0M.Micro``.
77

8+
`2024.11.0`_ - 2024/11/11
9+
-------------------------
10+
Changed
11+
~~~~~~~
12+
* Removed support for deprecated Python version 3.8
13+
814
`2024.09.0`_ - 2024/09/31
915
-------------------------
1016
Fixed
@@ -685,6 +691,7 @@ Added
685691
* Added :attr:`.BIC.country` and :attr:`.IBAN.country`.
686692

687693

694+
.. _2024.11.0: https://github.com/mdomke/schwifty/compare/2024.09.0...2024.11.0
688695
.. _2024.09.0: https://github.com/mdomke/schwifty/compare/2024.08.1...2024.09.0
689696
.. _2024.08.1: https://github.com/mdomke/schwifty/compare/2024.08.0...2024.08.1
690697
.. _2024.08.0: https://github.com/mdomke/schwifty/compare/2024.06.1...2024.08.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ classifiers = [
1515
"Operating System :: OS Independent",
1616
"Programming Language :: Python",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
2323
]
24-
requires-python = ">=3.8"
24+
requires-python = ">=3.9"
2525
authors = [
2626
{ name = "Martin Domke", email = "[email protected]" },
2727
]

schwifty/bban.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from random import Random
55
from typing import Any
66
from typing import cast
7-
from typing import Dict
87

98
from rstr import Rstr
109

@@ -183,7 +182,7 @@ def random(
183182
if random is None:
184183
random = Random() # noqa: S311
185184

186-
banks_by_country = cast(Dict[str, Any], registry.get("country"))
185+
banks_by_country = cast(dict[str, Any], registry.get("country"))
187186
if not country_code:
188187
country_code = random.choice(list(banks_by_country.keys()))
189188

schwifty/registry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from pathlib import Path
77
from typing import Any
88
from typing import Callable
9-
from typing import Dict
10-
from typing import List
119
from typing import Union
1210

1311

@@ -18,7 +16,7 @@
1816

1917

2018
Key = Union[str, tuple]
21-
Value = Union[Dict[Key, Any], List[Dict[Key, Any]]]
19+
Value = Union[dict[Key, Any], list[dict[Key, Any]]]
2220

2321
_registry: dict[Key, Value] = {}
2422

0 commit comments

Comments
 (0)