v10.0.1: Fix critical syntax issue on Python 3.9 and earlier
This commit is contained in:
parent
ba202eca05
commit
095fe103cb
|
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [10.0.1 - 2023-04-13]
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
- Fixed critical issue on Python versions earlier than 3.10.
|
||||||
|
|
||||||
## [10.0.0 - 2023-04-12]
|
## [10.0.0 - 2023-04-12]
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
__all__ = ["api", "api_client", "exceptions"]
|
__all__ = ["api", "api_client", "exceptions"]
|
||||||
|
|
||||||
__version__ = "10.0.0"
|
__version__ = "10.0.1"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import List, Optional
|
from typing import List, Optional, Union
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from pydantic import parse_obj_as
|
from pydantic import parse_obj_as
|
||||||
|
@ -134,7 +134,7 @@ class APIClient:
|
||||||
self,
|
self,
|
||||||
machine_id: str,
|
machine_id: str,
|
||||||
days: int,
|
days: int,
|
||||||
token: str | None = None,
|
token: Union[str, None] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Topup a server."""
|
"""Topup a server."""
|
||||||
request = api.ServerTopup.Request(days=days, token=token)
|
request = api.ServerTopup.Request(days=days, token=token)
|
||||||
|
|
Loading…
Reference in New Issue