Skip to content

Commit 928b4f8

Browse files
committed
Ruff ANN: fixed remaining annotation linting issues
1 parent c86008b commit 928b4f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

duckdb/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class DBAPITypeObject:
2424
def __init__(self, types: list[typing.DuckDBPyType]) -> None:
2525
self.types = types
2626

27-
def __eq__(self, other):
27+
def __eq__(self, other: object) -> bool:
2828
if isinstance(other, typing.DuckDBPyType):
2929
return other in self.types
3030
return False
3131

32-
def __repr__(self):
32+
def __repr__(self) -> str:
3333
return f"<DBAPITypeObject [{','.join(str(x) for x in self.types)}]>"
3434

3535

tests/fast/arrow/test_arrow_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __arrow_ext_serialize__(self) -> bytes:
125125
return b""
126126

127127
@classmethod
128-
def __arrow_ext_deserialize__(cls, storage_type, serialized):
128+
def __arrow_ext_deserialize__(cls, storage_type, serialized) -> 'UuidTypeWrong':
129129
return UuidTypeWrong()
130130

131131
storage_array = pa.array(["pedro"], pa.binary(5))

0 commit comments

Comments
 (0)