Skip to content

Commit

Permalink
Deprecate 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 23, 2023
1 parent b6a869f commit 1a27d75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 2 additions & 3 deletions src/lvmnps/nps/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 1a27d75

Please sign in to comment.