Skip to content

Commit

Permalink
Fix linter errors (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bennet authored Jul 11, 2023
1 parent 398f210 commit 9adc684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dask_deltatable/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Any, List, Tuple, Union
from typing import Any, Union

Filter = Tuple[str, str, Any]
Filters = Union[List[Filter], List[List[Filter]], None]
Filter = tuple[str, str, Any]
Filters = Union[list[Filter], list[list[Filter]], None]
4 changes: 2 additions & 2 deletions dask_deltatable/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import List, cast
from typing import cast

from .types import Filter, Filters

Expand Down Expand Up @@ -34,7 +34,7 @@ def get_partition_filters(
return None

if isinstance(filters[0][0], str):
filters = cast(List[List[Filter]], [filters])
filters = cast(list[list[Filter]], [filters])

allowed_ops = {
"=": "=",
Expand Down

0 comments on commit 9adc684

Please sign in to comment.