Skip to content

Commit 3f5c77b

Browse files
Remove support for Python 3.8 (#288)
* Remove support for Python 3.8 * Typing simplified - List replaced with list
1 parent 2fe1e4a commit 3f5c77b

File tree

8 files changed

+7
-20
lines changed

8 files changed

+7
-20
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
python-version:
30-
- "3.8"
3130
- "3.9"
3231
- "3.10"
3332
- "3.12"

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
name = "hepunits"
77
description = "Units and constants in the HEP system of units"
88
readme = "README.rst"
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1010
authors = [
1111
{ name = "Eduardo Rodrigues", email = "[email protected]" },
1212
]
@@ -28,7 +28,6 @@ classifiers = [
2828
"Programming Language :: Python",
2929
"Programming Language :: Python :: 3",
3030
"Programming Language :: Python :: 3 :: Only",
31-
"Programming Language :: Python :: 3.8",
3231
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",

src/hepunits/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Licensed under a 3-clause BSD style license, see LICENSE.
22

3-
# Convenient access to the version number
4-
from typing import List
5-
63
from . import constants, units
74
from ._version import version as __version__
85
from .constants.constants import (
@@ -596,5 +593,5 @@
596593
)
597594

598595

599-
def __dir__() -> List[str]: # pragma: no cover
596+
def __dir__() -> list[str]: # pragma: no cover
600597
return list(__all__)

src/hepunits/constants/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Licensed under a 3-clause BSD style license, see LICENSE.
22

3-
from typing import List
4-
53
from . import constants
64
from .constants import (
75
Avogadro,
@@ -57,5 +55,5 @@
5755
)
5856

5957

60-
def __dir__() -> List[str]:
58+
def __dir__() -> list[str]:
6159
return list(__all__)

src/hepunits/constants/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
# -----------------------------------------------------------------------------
3030

3131
from math import pi
32-
from typing import List
3332

3433
from ..units.units import e_SI, electronvolt, eplus, joule, kelvin, m, mole, s
3534

@@ -100,5 +99,5 @@
10099
k_Boltzmann = 1.380649e-23 * joule / kelvin
101100

102101

103-
def __dir__() -> List[str]:
102+
def __dir__() -> list[str]:
104103
return list(__all__)

src/hepunits/units/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Licensed under a 3-clause BSD style license, see LICENSE.
22

3-
from typing import List
4-
53
from . import prefixes, units
64
from .prefixes import (
75
atto,
@@ -552,5 +550,5 @@
552550
)
553551

554552

555-
def __dir__() -> List[str]:
553+
def __dir__() -> list[str]:
556554
return list(__all__)

src/hepunits/units/prefixes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
# -----------------------------------------------------------------------------
5555
# SI prefixes
5656
# -----------------------------------------------------------------------------
57-
from typing import List
58-
5957
quetta = 1.0e30
6058
ronna = 1.0e27
6159
yotta = 1.0e24
@@ -99,5 +97,5 @@
9997
googol = 1.0e100
10098

10199

102-
def __dir__() -> List[str]:
100+
def __dir__() -> list[str]:
103101
return list(__all__)

src/hepunits/units/units.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"""
6868

6969
from math import pi as _pi
70-
from typing import List
7170

7271
from . import prefixes as _pre
7372

@@ -715,5 +714,5 @@
715714
)
716715

717716

718-
def __dir__() -> List[str]:
717+
def __dir__() -> list[str]:
719718
return list(__all__)

0 commit comments

Comments
 (0)