Skip to content

Commit 0b54fbb

Browse files
committed
chore(deps): bump and relock
1 parent 58dea60 commit 0b54fbb

File tree

18 files changed

+440
-381
lines changed

18 files changed

+440
-381
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ibis/backends/tests/signature/typecheck.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
Utilities for typed interfaces.
66
"""
77

8-
# ruff: noqa: D205, D415, D400
9-
108
from __future__ import annotations
119

1210
from functools import partial

ibis/backends/tests/test_export.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,6 @@ def test_to_pyarrow_decimal(backend, dtype, pyarrow_dtype):
494494
reason="read_delta not yet implemented",
495495
)
496496
@pytest.mark.notyet(["clickhouse"], raises=Exception)
497-
@pytest.mark.xfail_version(
498-
polars=["polars<1.30.1", "deltalake>=1"], raises=AttributeError
499-
)
500497
@pytest.mark.notyet(["mssql"], raises=PyDeltaTableError)
501498
def test_roundtrip_delta(backend, con, alltypes, tmp_path, monkeypatch):
502499
if con.name == "pyspark":

ibis/backends/tests/test_temporal.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,9 +1841,7 @@ def test_subsecond_cast_to_timestamp(con, dtype):
18411841
raises=AssertionError,
18421842
)
18431843
@pytest.mark.notimpl(["flink"], raises=ArrowInvalid)
1844-
@pytest.mark.notyet(
1845-
["polars"], raises=AssertionError, reason="produces an incorrect result"
1846-
)
1844+
@pytest.mark.notyet(["polars"], raises=PolarsInvalidOperationError)
18471845
def test_big_timestamp(con):
18481846
# TODO: test with a timezone
18491847
ts = "2419-10-11 10:10:25"
@@ -1903,7 +1901,7 @@ def test_timestamp_date_comparison(backend, alltypes, df, left_fn, right_fn):
19031901
@pytest.mark.notimpl(
19041902
["pyspark"], condition=not IS_SPARK_REMOTE, raises=pd.errors.OutOfBoundsDatetime
19051903
)
1906-
@pytest.mark.notimpl(["polars"], raises=AssertionError, reason="returns NaT")
1904+
@pytest.mark.notimpl(["polars"], raises=PolarsInvalidOperationError)
19071905
@pytest.mark.notyet(
19081906
["flink"],
19091907
reason="Casting from timestamp[s] to timestamp[ns] would result in out of bounds timestamp: 81953424000",

ibis/common/bases.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def __eq__(self, other) -> bool:
164164
self.__cache__.setdefault(id2, {})[id1] = result
165165
return result
166166

167+
__hash__ = None
168+
167169
def __del__(self):
168170
id1 = id(self)
169171
for id2 in self.__cache__.pop(id1, ()):
@@ -200,6 +202,8 @@ def __eq__(self, other) -> bool:
200202
return NotImplemented
201203
return all(getattr(self, n) == getattr(other, n) for n in self.__fields__)
202204

205+
__hash__ = None
206+
203207
def __getstate__(self) -> dict[str, Any]:
204208
return {k: getattr(self, k) for k in self.__fields__}
205209

ibis/common/collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def __eq__(self, other) -> bool:
150150
return NotImplemented
151151
return dict(self.items()) == dict(other.items())
152152

153+
__hash__ = None
154+
153155

154156
@public
155157
class MapSet(Mapping[K, V]):

ibis/common/deferred.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def resolve(self, context: dict):
4444
@abstractmethod
4545
def __eq__(self, other: Resolver) -> bool: ...
4646

47+
@abstractmethod
48+
def __hash__(self) -> int: ...
49+
4750
@classmethod
4851
def __coerce__(cls, value):
4952
if isinstance(value, cls):
@@ -174,6 +177,8 @@ def __rlshift__(self, other: Any) -> Deferred:
174177
def __eq__(self, other: Any) -> Deferred: # type: ignore
175178
return Deferred(BinaryOperator(operator.eq, self, other))
176179

180+
__hash__ = None
181+
177182
def __ne__(self, other: Any) -> Deferred: # type: ignore
178183
return Deferred(BinaryOperator(operator.ne, self, other))
179184

ibis/common/egraph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def __eq__(self, other: object) -> bool:
121121
return NotImplemented
122122
return self._parents == other._parents
123123

124+
__hash__ = None # disjoint sets are mutable, so they are not hashable
125+
124126
def copy(self) -> DisjointSet:
125127
"""Make a copy of the disjoint set.
126128

ibis/common/grounds.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def __eq__(self, other) -> bool:
161161
return False
162162
return True
163163

164+
__hash__ = None
165+
164166
@property
165167
def __args__(self) -> tuple[Any, ...]:
166168
return tuple(getattr(self, name) for name in self.__argnames__)

ibis/common/patterns.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ def describe(self, plural=False):
222222
@abstractmethod
223223
def __eq__(self, other: Pattern) -> bool: ...
224224

225+
@abstractmethod
226+
def __hash__(self) -> int: ...
227+
225228
def __invert__(self) -> Not:
226229
"""Syntax sugar for matching the inverse of the pattern."""
227230
return Not(self)

0 commit comments

Comments
 (0)