Skip to content

Commit

Permalink
refactor: remove unused PlScanCsv
Browse files Browse the repository at this point in the history
Haven't needed this alias since aede7f6
  • Loading branch information
dangotbanned committed Dec 18, 2024
1 parent 951fe8c commit a48eb8f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions scripts/flights2.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from collections.abc import Iterable, Sequence
from functools import cached_property
from pathlib import Path
from typing import IO, TYPE_CHECKING, Annotated, Literal
from typing import TYPE_CHECKING, Annotated, Literal

import niquests
import polars as pl
Expand Down Expand Up @@ -128,20 +128,6 @@
"""Anything that can be converted into a ``DateRange``."""


type PlScanCsv = (
str
| Path
| IO[str]
| IO[bytes]
| bytes
| list[str]
| list[Path]
| list[IO[str]]
| list[IO[bytes]]
| list[bytes]
)


def is_chrono_str(s: Any) -> TypeIs[_ChronoFormat]:
return s == "%Y/%m/%d %H:%M" or (isinstance(s, str) and s.startswith("%"))

Expand Down

0 comments on commit a48eb8f

Please sign in to comment.