Skip to content

Commit e42c05c

Browse files
committed
Python >= 3.9
1 parent a3d83d9 commit e42c05c

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.github/workflows/ci_stdlib_only.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
1717
strategy:
1818
matrix:
19-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
20-
os: ['ubuntu-22.04']
19+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
20+
os: ['ubuntu-latest']
2121
include:
2222
- os: macos-latest
2323
python-version: '3.13'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = ["Development Status :: 5 - Production/Stable",
1414
"Programming Language :: Python :: 3",
1515
"Topic :: Scientific/Engineering :: GIS"
1616
]
17-
requires-python = ">=3.8"
17+
requires-python = ">=3.9"
1818
dynamic = ["version", "readme"]
1919

2020
[tool.setuptools.dynamic]

src/pymap3d/ellipsoid.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22

33
from __future__ import annotations
44
from math import sqrt
5-
from dataclasses import dataclass, field
5+
from dataclasses import dataclass
66
from typing import TypedDict
7-
import sys
8-
9-
if sys.version_info < (3, 9):
10-
from typing import Dict
11-
else:
12-
Dict = dict
137

148

159
class Model(TypedDict):
@@ -66,7 +60,7 @@ class Ellipsoid:
6660
flattening: float
6761
thirdflattening: float
6862
eccentricity: float
69-
models = field(default_factory=Dict[str, Model])
63+
models: dict[str, Model]
7064

7165
def __init__(
7266
self,

0 commit comments

Comments
 (0)