Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Sep 14, 2024
1 parent 1e8aaff commit caa2b90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: rustup show
- uses: mozilla-actions/[email protected]
- run: make venv
- run: .venv/bin/python -m pip install polars==0.20.6 # min version
- run: .venv/bin/python -m pip install polars==1.3.0 # min version
- run: make install
- run: make test

Expand Down
7 changes: 6 additions & 1 deletion polars_xdt/ranges.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
from __future__ import annotations

import re
from typing import TYPE_CHECKING, Literal, Sequence, TypeAlias, Union, overload
from typing import TYPE_CHECKING, Literal, Sequence, Union, overload

import polars as pl

mapping = {"Mon": 1, "Tue": 2, "Wed": 3, "Thu": 4, "Fri": 5, "Sat": 6, "Sun": 7}

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

ClosedInterval: TypeAlias = Literal[
Expand Down

0 comments on commit caa2b90

Please sign in to comment.