Skip to content

Commit 590c72f

Browse files
committed
Enabled ruff rule RUF012
1 parent de24979 commit 590c72f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ignore = [
9191
"TRY003",
9292
# "B904",
9393
# "UP006",
94-
"RUF012",
94+
# "RUF012",
9595
"FBT003",
9696
"C416",
9797
"SIM102",

python/datafusion/expr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from __future__ import annotations
2424

25-
from typing import TYPE_CHECKING, Any, Optional
25+
from typing import TYPE_CHECKING, Any, ClassVar, Optional
2626

2727
import pyarrow as pa
2828

@@ -439,7 +439,7 @@ def fill_null(self, value: Any | Expr | None = None) -> Expr:
439439
value = Expr.literal(value)
440440
return Expr(functions_internal.nvl(self.expr, value.expr))
441441

442-
_to_pyarrow_types = {
442+
_to_pyarrow_types: ClassVar[dict[type, pa.DataType]] = {
443443
float: pa.float64(),
444444
int: pa.int64(),
445445
str: pa.string(),

0 commit comments

Comments
 (0)