From 96e74acb380e8caa3dadc575acab6ba1e8666867 Mon Sep 17 00:00:00 2001 From: "sam@samr1.net" Date: Sat, 14 Mar 2026 12:09:55 +0100 Subject: [PATCH 1/3] drop support for Python 3.9 --- .github/workflows/.tests-python.yml | 2 +- mypy.ini | 2 +- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/.tests-python.yml b/.github/workflows/.tests-python.yml index e3da4f7..d64580a 100644 --- a/.github/workflows/.tests-python.yml +++ b/.github/workflows/.tests-python.yml @@ -12,7 +12,7 @@ jobs: container: python:${{ matrix.python-version }} strategy: matrix: - python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + python-version: [ "3.10", "3.11", "3.12", "3.13" ] steps: - uses: actions/checkout@v4 diff --git a/mypy.ini b/mypy.ini index a21f37d..a9bad9c 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,6 +1,6 @@ # Global options: [mypy] -python_version = 3.9 +python_version = 3.10 disallow_untyped_defs = True ignore_missing_imports = True diff --git a/poetry.lock b/poetry.lock index 3d60157..a937087 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.3.2 and should not be changed by hand. [[package]] name = "cachecontrol" @@ -468,7 +468,7 @@ description = "A lil' TOML parser" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "extra == \"dev\" and python_version < \"3.11\"" +markers = "extra == \"dev\" and python_version == \"3.10\"" files = [ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, @@ -557,5 +557,5 @@ filecache = ["filelock"] [metadata] lock-version = "2.1" -python-versions = ">=3.9" -content-hash = "bab39529664dc819d2650b567842b5c24741efbd78c91373fcbf470abd746da6" +python-versions = ">=3.10" +content-hash = "f7245edd61ad06ad23ba40aa872c82b8ddaa3fb5fc76dafdb5fb3325666a1fd3" diff --git a/pyproject.toml b/pyproject.toml index bb09930..c506269 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "cachecontrol>=0.14.3", From 3efd9312970643242f92fe62271e8b85c0ac03c1 Mon Sep 17 00:00:00 2001 From: "sam@samr1.net" Date: Sat, 14 Mar 2026 12:11:25 +0100 Subject: [PATCH 2/3] lint fix --- staticmap3/staticmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticmap3/staticmap.py b/staticmap3/staticmap.py index a929cc8..6607e3a 100644 --- a/staticmap3/staticmap.py +++ b/staticmap3/staticmap.py @@ -463,7 +463,7 @@ def _draw_base_layer(self, image: "Image.Image") -> None: for tile in tiles ] - for tile, future in zip(tiles, futures): + for tile, future in zip(tiles, futures, strict=True): x, y, url = tile try: From 999140e0414cf1c06a476b65f05f1498c623135a Mon Sep 17 00:00:00 2001 From: "sam@samr1.net" Date: Sat, 14 Mar 2026 12:13:17 +0100 Subject: [PATCH 3/3] update pyproject.toml --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c506269..5b7f1c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,6 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",