diff --git a/torcharrow/dtypes.py b/torcharrow/dtypes.py index e49abcbb0..8ddcbb96b 100644 --- a/torcharrow/dtypes.py +++ b/torcharrow/dtypes.py @@ -364,7 +364,7 @@ def infer_dype_from_callable_hint( ] -def promote(l, r): +def promote(l: DType, r: DType) -> ty.Optional[DType]: assert is_boolean_or_numerical(l) and is_boolean_or_numerical(r) lt = l.typecode