diff --git a/CHANGELOG.md b/CHANGELOG.md index d8572fc..3b39d4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [10.0.1 - 2023-04-13] + +## Fixed + +- Fixed critical issue on Python versions earlier than 3.10. + ## [10.0.0 - 2023-04-12] ## Changed diff --git a/src/sporestack/__init__.py b/src/sporestack/__init__.py index 28b7b82..bbfe6fe 100644 --- a/src/sporestack/__init__.py +++ b/src/sporestack/__init__.py @@ -2,4 +2,4 @@ __all__ = ["api", "api_client", "exceptions"] -__version__ = "10.0.0" +__version__ = "10.0.1" diff --git a/src/sporestack/api_client.py b/src/sporestack/api_client.py index c49ca34..2d3d185 100644 --- a/src/sporestack/api_client.py +++ b/src/sporestack/api_client.py @@ -1,7 +1,7 @@ import logging import os from dataclasses import dataclass -from typing import List, Optional +from typing import List, Optional, Union import httpx from pydantic import parse_obj_as @@ -134,7 +134,7 @@ class APIClient: self, machine_id: str, days: int, - token: str | None = None, + token: Union[str, None] = None, ) -> None: """Topup a server.""" request = api.ServerTopup.Request(days=days, token=token)