Skip to content

Commit 0d7f413

Browse files
committed
Fix ruff errors
1 parent 4143b8a commit 0d7f413

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/datafusion/user_defined.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
overload,
3434
)
3535

36-
from typing_extensions import TypeGuard
37-
3836
import pyarrow as pa
37+
from typing_extensions import TypeGuard
3938

4039
import datafusion._internal as df_internal
4140
from datafusion.expr import Expr
@@ -101,7 +100,6 @@ def __datafusion_scalar_udf__(self) -> object: ... # noqa: D105
101100

102101
def _is_pycapsule(value: object) -> TypeGuard[_PyCapsule]:
103102
"""Return ``True`` when ``value`` is a CPython ``PyCapsule``."""
104-
105103
return value.__class__.__name__ == "PyCapsule"
106104

107105

0 commit comments

Comments
 (0)