Skip to content

Commit ef46d2f

Browse files
rchen152The dataclass_array Authors
authored andcommitted
Silence some pytype errors.
PiperOrigin-RevId: 520300274
1 parent a3d99c7 commit ef46d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dataclass_array/utils/np_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def to_absolute_axis(axis: Axes, *, ndim: int) -> Axes:
171171
elif isinstance(axis, tuple):
172172
if not all(isinstance(dim, int) for dim in axis):
173173
raise ValueError(f'Invalid axis={axis}')
174-
return tuple(to_absolute_axis(dim, ndim=ndim) for dim in axis)
174+
return tuple(to_absolute_axis(dim, ndim=ndim) for dim in axis) # pytype: disable=bad-return-type # always-use-return-annotations
175175
else:
176176
raise TypeError(f'Unexpected axis type: {type(axis)} {axis}')
177177

0 commit comments

Comments
 (0)