Skip to content

Commit fa0deb7

Browse files
committed
Ruff ANN202: Unsafe-fixed return type annotations
1 parent b99a8df commit fa0deb7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

duckdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
# version() is a more human friendly formatted version string of both the distribution package and the bundled duckdb
14-
def version():
14+
def version() -> str:
1515
return f"{__version__} (with duckdb {duckdb_version})"
1616

1717

duckdb/experimental/spark/sql/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _create_dataframe(self, data: Union[Iterable[Any], "PandasDataFrame"]) -> Da
5959
self.conn.register(unique_name, data)
6060
return DataFrame(self.conn.sql(f'select * from "{unique_name}"'), self)
6161

62-
def verify_tuple_integrity(tuples: list[tuple]):
62+
def verify_tuple_integrity(tuples: list[tuple]) -> None:
6363
if len(tuples) <= 1:
6464
return
6565
expected_length = len(tuples[0])

duckdb/experimental/spark/sql/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ class StructType(DataType):
764764
False
765765
"""
766766

767-
def _update_internal_duckdb_type(self):
767+
def _update_internal_duckdb_type(self) -> None:
768768
self.duckdb_type = duckdb.struct_type(dict(zip(self.names, [x.duckdb_type for x in self.fields])))
769769

770770
def __init__(self, fields: Optional[list[StructField]] = None) -> None: # noqa: D107

duckdb_packaging/build_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _read_duckdb_long_version() -> str:
136136

137137
def _skbuild_config_add(
138138
key: str, value: Union[list, str], config_settings: dict[str, Union[list[str], str]], fail_if_exists: bool = False
139-
):
139+
) -> None:
140140
"""Add or modify a configuration setting for scikit-build-core.
141141
142142
This function handles adding values to scikit-build-core configuration settings,

0 commit comments

Comments
 (0)