diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2f30f01..d969824 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/neon_api/client.py b/neon_api/client.py index a1f20d0..6a90511 100644 --- a/neon_api/client.py +++ b/neon_api/client.py @@ -183,8 +183,8 @@ class NeonAPI: self, *, shared: bool = False, - cursor: str | None = None, - limit: int | None = None, + cursor: str = None, + limit: int = None, ) -> t.List[t.Dict[str, t.Any]]: """Get a list of projects. If shared is True, get a list of shared projects. @@ -297,8 +297,8 @@ class NeonAPI: self, project_id: str, *, - cursor: str | None = None, - limit: int | None = None, + cursor: str = None, + limit: int = None, ) -> t.Dict[str, t.Any]: """Get a list of branches. @@ -400,8 +400,8 @@ class NeonAPI: project_id: str, branch_id: str, *, - cursor: str | None = None, - limit: int | None = None, + cursor: str = None, + limit: int = None, ) -> t.List[t.Dict[str, t.Any]]: """Get a list of databases. @@ -741,8 +741,8 @@ class NeonAPI: self, project_id: str, *, - cursor: str | None = None, - limit: int | None = None, + cursor: str = None, + limit: int = None, ) -> t.Dict[str, t.Any]: """Get a list of operations. @@ -778,10 +778,10 @@ class NeonAPI: def consumption( self, *, - cursor: str | None = None, - limit: int | None = None, - from_date: datetime | str | None = None, - to_date: datetime | str | None = None, + cursor: str = None, + limit: int = None, + from_date: datetime = None, + to_date: datetime = None, ) -> t.Dict[str, t.Any]: """Experimental — get a list of consumption metrics for all projects. diff --git a/setup.py b/setup.py index 38b7a41..40ebd98 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ DESCRIPTION = "An API Client for the Neon API." URL = "https://github.com/kennethreitz/neon-api-python" EMAIL = "me@kennethreitz.org" AUTHOR = "Kenneth Reitz" -REQUIRES_PYTHON = ">=3.10.0" +REQUIRES_PYTHON = ">=3.9.0" VERSION = "0.1.1" # What packages are required for this module to be executed? @@ -117,6 +117,7 @@ setup( "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",