Skip to content

Commit

Permalink
Merge pull request #71 from malmeloo/fix/version-compat
Browse files Browse the repository at this point in the history
fix: Python version compatibility
  • Loading branch information
malmeloo authored Sep 2, 2024
2 parents d9a9f64 + cb9b9dd commit 693c7c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions findmy/reports/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
TYPE_CHECKING,
Any,
Callable,
Concatenate,
ParamSpec,
Sequence,
TypedDict,
TypeVar,
Expand All @@ -26,7 +24,7 @@

import bs4
import srp._pysrp as srp
from typing_extensions import override
from typing_extensions import Concatenate, ParamSpec, override

from findmy.errors import (
InvalidCredentialsError,
Expand Down
6 changes: 4 additions & 2 deletions findmy/util/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Utility types."""

from typing import Coroutine, TypeVar
from typing import Coroutine, TypeVar, Union

T = TypeVar("T")

MaybeCoro = T | Coroutine[None, None, T]
# Cannot use `|` operator (PEP 604) in python 3.9,
# even with __future__ import since it is evaluated directly
MaybeCoro = Union[T, Coroutine[None, None, T]]
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cryptography = ">=42.0.0,<44.0.0"
beautifulsoup4 = "^4.12.3"
aiohttp = "^3.9.5"
bleak = "^0.22.2"
typing-extensions = "^4.12.2"

[tool.poetry.group.dev]
optional = true
Expand Down

0 comments on commit 693c7c4

Please sign in to comment.