Skip to content

Commit 83304f6

Browse files
committed
Ruff B018: fixed useless expressions
1 parent c002b2c commit 83304f6

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

duckdb/udf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def vectorized(func: Callable) -> Callable:
1414

1515
new_annotations = {}
1616
sig = signature(func)
17-
sig.parameters
1817
for param in sig.parameters:
1918
new_annotations[param] = pa.lib.ChunkedArray
2019

scripts/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: E402
1+
# ruff: noqa: E402, B018
22
import pyarrow
33
import pyarrow.dataset
44

tests/fast/api/test_attribute_getter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_getitem_nonexistant(self, duckdb_cursor):
2424
def test_getattr_nonexistant(self, duckdb_cursor):
2525
rel = duckdb_cursor.sql("select i as a, (i + 5) % 10 as b, (i + 2) % 3 as c from range(100) tbl(i)")
2626
with pytest.raises(AttributeError):
27-
rel.d
27+
rel.d # noqa: B018
2828

2929
def test_getattr_collision(self, duckdb_cursor):
3030
rel = duckdb_cursor.sql("select i as df from range(100) tbl(i)")

tests/fast/spark/test_spark_runtime_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TestSparkRuntimeConfig:
99
def test_spark_runtime_config(self, spark):
1010
# This fetches the internal runtime config from the session
11-
spark.conf
11+
spark.conf # noqa: B018
1212

1313
@pytest.mark.skipif(
1414
USE_ACTUAL_SPARK, reason="Getting an error with our local PySpark setup. Unclear why but not a priority."

tests/fast/test_multithread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,15 @@ def from_parquet(duckdb_conn, queue, pandas):
350350
queue.put(False)
351351

352352

353-
def description(duckdb_conn, queue, pandas):
353+
def description(_, queue, __):
354354
# Get a new connection
355355
duckdb_conn = duckdb.connect()
356356
duckdb_conn.execute("CREATE TABLE test (i bool, j TIME, k VARCHAR)")
357357
duckdb_conn.execute("INSERT INTO test VALUES (TRUE, '01:01:01', 'bla' )")
358358
rel = duckdb_conn.table("test")
359359
rel.execute()
360360
try:
361-
rel.description
361+
rel.description # noqa: B018
362362
queue.put(True)
363363
except:
364364
queue.put(False)

tests/fast/test_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ def test_result_interval(self):
7676
def test_description_uuid(self):
7777
connection = duckdb.connect()
7878
connection.execute("select uuid();")
79-
connection.description
79+
connection.description # noqa: B018

0 commit comments

Comments
 (0)