diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b057184..9c00680 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 7079000..82b0b69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ include = ["src/lvmnps/actor/schema.json"] lvmnps = "lvmnps.__main__:main" [tool.poetry.dependencies] -python = ">=3.9,<4.0" +python = ">=3.10,<4.0" sdsstools = "^1.0.0" click-default-group = "^1.2.2" sdss-clu = "^2.0.0" diff --git a/src/lvmnps/nps/core.py b/src/lvmnps/nps/core.py index d5a3e70..87991ed 100644 --- a/src/lvmnps/nps/core.py +++ b/src/lvmnps/nps/core.py @@ -11,7 +11,7 @@ import abc import asyncio -from typing import Any, Sequence, TypedDict, Union +from typing import Any, Sequence, TypedDict from pydantic import BaseModel, ConfigDict @@ -61,8 +61,7 @@ async def off(self): await self._client.set_state(self, on=False) -# Unions needed for Python 3.9 -OutletArgType = Union[OutletModel, int, str, Sequence[Union[str, int, OutletModel]]] +OutletArgType = OutletModel | int | str | Sequence[str | int | OutletModel] class ImplementationsDict(TypedDict):