Skip to content

Commit

Permalink
cross-version compat
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Aug 11, 2024
1 parent 9a92211 commit c59780e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py-polars/polars/dataframe/plotting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Mapping, Union, Unpack
from typing import TYPE_CHECKING, Any, Callable, Mapping, Union

if TYPE_CHECKING:
import sys
Expand All @@ -22,6 +22,10 @@
from typing import TypeAlias
else:
from typing_extensions import TypeAlias
if sys.version_info >= (3, 11):
from typing import Unpack
else:
from typing_extensions import Unpack

ChannelType: TypeAlias = Union[str, Mapping[str, Any], Any]

Expand Down

0 comments on commit c59780e

Please sign in to comment.