Enable Pyrefly in fbcode/vision/fair/pytorch3d

Summary:
Automated migration to enable Pyrefly type checking for `fbcode/vision/fair/pytorch3d`.

- Added `python.set_pyrefly(True)` to PACKAGE file
- Suppressed pre-existing type errors

Pyrefly is Meta's next-generation Python type checker, replacing Pyre.

If you encounter issues, you can revert the PACKAGE change by removing
the `python.set_pyrefly(True)` line.
#pyreupgrade

Differential Revision: D113596106

fbshipit-source-id: a4caffc6c5622ea030fe296c3a64e45fa803f77e
This commit is contained in:
generatedunixname89002005307016
2026-07-24 16:50:19 -07:00
committed by meta-codesync[bot]
parent 4daa00b41c
commit 32a33e2442
76 changed files with 332 additions and 17 deletions

View File

@@ -226,6 +226,7 @@ def _check_raymarcher_inputs(
if not z_can_be_none and rays_z.shape != rays_shape:
raise ValueError("rays_z have to be of the same shape as rays_densities.")
# pyrefly: ignore [missing-attribute]
if not features_can_be_none and rays_features.shape[:-1] != rays_shape:
raise ValueError(
"The first to previous to last dimensions of rays_features"