v10.0.1: Fix critical syntax issue on Python 3.9 and earlier

This commit is contained in:
Administrator 2023-04-13 19:33:40 +00:00
parent ba202eca05
commit 095fe103cb
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -2,4 +2,4 @@
__all__ = ["api", "api_client", "exceptions"]
__version__ = "10.0.0"
__version__ = "10.0.1"

View File

@ -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)