Skip to content

Commit

Permalink
type alias version info
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed May 10, 2024
1 parent 98830a3 commit aab991d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion iso_week_date/pandas_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import sys
from typing import TypeAlias

from iso_week_date._patterns import (
ISOWEEK__DATE_FORMAT,
Expand All @@ -13,6 +12,11 @@
)
from iso_week_date._utils import parse_version

if sys.version_info >= (3, 10): # pragma: no cover
from typing import TypeAlias
else: # pragma: no cover
from typing_extensions import TypeAlias

if sys.version_info >= (3, 11): # pragma: no cover
from typing import Self
else: # pragma: no cover
Expand Down
7 changes: 6 additions & 1 deletion iso_week_date/polars_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sys
from datetime import timedelta
from typing import Generic, TypeAlias, TypeVar
from typing import Generic, TypeVar

from iso_week_date._patterns import (
ISOWEEK__DATE_FORMAT,
Expand All @@ -14,6 +14,11 @@
)
from iso_week_date._utils import parse_version

if sys.version_info >= (3, 10): # pragma: no cover
from typing import TypeAlias
else: # pragma: no cover
from typing_extensions import TypeAlias

if sys.version_info >= (3, 11): # pragma: no cover
from typing import Self
else: # pragma: no cover
Expand Down

0 comments on commit aab991d

Please sign in to comment.