Skip to content

Commit

Permalink
DEV: Drop python 3 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Sep 4, 2023
1 parent e4fd83b commit bc344ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
14 changes: 7 additions & 7 deletions heracles/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ class Map(metaclass=ABCMeta):
"""

def __init__(self, columns: t.Tuple[t.Optional[str]]) -> None:
def __init__(self, columns: tuple[t.Optional[str]]) -> None:
"""Initialise the map."""
self._columns = columns
super().__init__()

@property
def columns(self) -> t.Tuple[t.Optional[str]]:
def columns(self) -> tuple[t.Optional[str]]:
"""Return the catalogue columns used by this map."""
return self._columns

Expand Down Expand Up @@ -622,10 +622,10 @@ def map_catalogs(
*,
parallel: bool = False,
out: t.MutableMapping[t.Any, t.Any] = None,
include: t.Optional[t.Sequence[t.Tuple[t.Any, t.Any]]] = None,
exclude: t.Optional[t.Sequence[t.Tuple[t.Any, t.Any]]] = None,
include: t.Optional[t.Sequence[tuple[t.Any, t.Any]]] = None,
exclude: t.Optional[t.Sequence[tuple[t.Any, t.Any]]] = None,
progress: bool = False,
) -> t.Dict[t.Tuple[t.Any, t.Any], MapData]:
) -> dict[tuple[t.Any, t.Any], MapData]:
"""Make maps for a set of catalogues."""

# the toc dict of maps
Expand Down Expand Up @@ -729,12 +729,12 @@ def map_catalogs(


def transform_maps(
maps: t.Mapping[t.Tuple[t.Any, t.Any], MapData],
maps: t.Mapping[tuple[t.Any, t.Any], MapData],
*,
out: t.MutableMapping[t.Any, t.Any] = None,
progress: bool = False,
**kwargs,
) -> t.Dict[t.Tuple[t.Any, t.Any], np.ndarray]:
) -> dict[tuple[t.Any, t.Any], np.ndarray]:
"""transform a set of maps to alms"""

# the output toc dict
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ optional-dependencies = {docs = [
"pytest",
]}
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
urls.Documentation = "https://heracles.readthedocs.io/"
urls.Homepage = "https://github.com/heracles-ec/heracles"
urls.Issues = "https://github.com/heracles-ec/heracles/issues"
Expand Down Expand Up @@ -92,7 +92,7 @@ select = [
"W",
"YTT",
]
target-version = "py38"
target-version = "py39"
isort.known-first-party = [
"heracles",
]
Expand Down

0 comments on commit bc344ec

Please sign in to comment.