Skip to content

Commit

Permalink
python linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jul 17, 2024
1 parent 9712b15 commit b85cee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rerun_py/tests/unit/test_expected_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
mem = rr.memory_recording()


def expect_warning(call: Callable, expected_warning: str) -> None:
def expect_warning(call: Callable[..., None], expected_warning: str) -> None:
with pytest.warns(RerunWarning) as warnings:
call()
print("Logged warnings:")
Expand Down
3 changes: 1 addition & 2 deletions rerun_py/tests/unit/test_transform3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def test_transform3d() -> None:
axis_length,
) in all_arrays:
translation = cast(Optional[rr.datatypes.Vec3DLike], translation)
rotation_axis_angle = cast(Optional[rr.datatypes.RotationAxisAngleLike], rotation_axis_angle)
quaternion = cast(Optional[rr.datatypes.QuaternionLike], quaternion)
scale = cast(Optional[rr.datatypes.Vec3DLike | rr.datatypes.Float32Like], scale)
mat3x3 = cast(Optional[rr.datatypes.Mat3x3Like], mat3x3)
Expand All @@ -142,7 +141,7 @@ def test_transform3d() -> None:
)
arch = rr.Transform3D(
translation=translation,
rotation_axis_angle=rotation_axis_angle,
rotation_axis_angle=rotation_axis_angle, # type: ignore[assignment, arg-type] # prior cast didn't work here
quaternion=quaternion,
scale=scale,
mat3x3=mat3x3,
Expand Down

0 comments on commit b85cee3

Please sign in to comment.