Skip to content

Commit

Permalink
import type extensions for old python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
raisadz committed Sep 13, 2024
1 parent 468fbe2 commit 6522c1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
from typing import Callable
from typing import Iterator
from typing import Sequence
from typing import TypeAlias

import pandas as pd

from narwhals.typing import IntoFrame

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

Constructor: TypeAlias = Callable[[Any], IntoFrame]


Expand Down

0 comments on commit 6522c1d

Please sign in to comment.