Upgrade pyright (#2526)

* Upgrade pyright

* Resolve pyright errors

* Suppress trimesh error

* Run ruff
This commit is contained in:
Brent Yi authored and GitHub committed 2023-10-14 13:00:17 +08:00
1 parent 42cabedc60
commit d3934737a1
10 files changed
+42 -33

No files matched your search

+1
View File
@@ -239,6 +239,7 @@ def get_cube(
if isinstance(side_length, float):
pts *= side_length / 2.0
else:
assert isinstance(side_length, torch.Tensor)
pts[0] *= side_length[0].item() / 2.0
pts[1] *= side_length[1].item() / 2.0
pts[2] *= side_length[2].item() / 2.0