Skip to content

Commit

Permalink
🐛 Fix missing type in 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfachLeo committed Jul 13, 2024
1 parent aa9eb47 commit c8a2e6e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/sharkey_crawler/types/id.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
"""This defines types related to ids."""
from __future__ import annotations

from typing import TypeAlias
from sys import version_info

if version_info[0] > 3 or version_info[1] >= 10:
from typing import TypeAlias

__all__ = ["SharkeyId"]

"""The current representation of an ID in Sharkey."""
SharkeyId: TypeAlias = str
if version_info[0] > 3 or version_info[1] >= 10:
"""The current representation of an ID in Sharkey."""
SharkeyId: TypeAlias = str
else:
SharkeyId = str

0 comments on commit c8a2e6e

Please sign in to comment.