Skip to content

Commit 0a27617

Browse files
committed
refactor: update type hints for rex_type and types methods to improve clarity
1 parent 9adbf4f commit 0a27617

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/datafusion/expr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,23 +648,23 @@ def between(self, low: Any, high: Any, negated: bool = False) -> Expr:
648648

649649
return Expr(self.expr.between(low.expr, high.expr, negated=negated))
650650

651-
def rex_type(self) -> "RexType": # type: ignore[call-arg]
651+
def rex_type(self) -> RexType: # type: ignore[call-arg]
652652
"""Return the Rex Type of this expression.
653653
654654
A Rex (Row Expression) specifies a single row of data.That specification
655655
could include user defined functions or types. RexType identifies the
656656
row as one of the possible valid ``RexType``.
657657
"""
658-
return self.expr.rex_type() # type: ignore
658+
return self.expr.rex_type()
659659

660-
def types(self) -> "DataTypeMap": # type: ignore[call-arg]
660+
def types(self) -> DataTypeMap: # type: ignore[call-arg]
661661
"""Return the ``DataTypeMap``.
662662
663663
Returns:
664664
DataTypeMap which represents the PythonType, Arrow DataType, and
665665
SqlType Enum which this expression represents.
666666
"""
667-
return self.expr.types() # type: ignore
667+
return self.expr.types()
668668

669669
def python_value(self) -> Any:
670670
"""Extracts the Expr value into a PyObject.

0 commit comments

Comments
 (0)