Skip to content

Commit

Permalink
i hate python typechecking with a passion
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Dec 3, 2024
1 parent 1ad9e11 commit 6190419
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions py-polars/tests/unit/test_row_encoding_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import datetime
import decimal
import functools
from typing import Any, Literal, Optional
from typing import Any, Literal, Optional, Union

import pytest
from hypothesis import given
Expand All @@ -15,17 +15,19 @@
from polars.testing.parametric import column, dataframes, series

Element = Optional[
bool
| int
| float
| str
| decimal.Decimal
| datetime.date
| datetime.datetime
| datetime.time
| datetime.timedelta
| list[Any]
| dict[Any, Any]
Union[
bool,
int,
float,
str,
decimal.Decimal,
datetime.date,
datetime.datetime,
datetime.time,
datetime.timedelta,
list[Any],
dict[Any, Any],
]
]
OrderSign = Literal[-1, 0, 1]

Expand Down

0 comments on commit 6190419

Please sign in to comment.