Enable Pyrefly in fbcode/vision/fair

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

- 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: D107142434

fbshipit-source-id: 25929bb3d5a310d00dab11a46c5395df94357feb
This commit is contained in:
generatedunixname89002005307016
2026-06-02 06:18:19 -07:00
committed by meta-codesync[bot]
parent b73d735ecf
commit 05025bf005
78 changed files with 336 additions and 12 deletions

View File

@@ -75,6 +75,7 @@ def visualize_reconstruction(
# Set the random seeds
torch.manual_seed(0)
# pyrefly: ignore [bad-argument-type]
np.random.seed(0)
# Get the config from the experiment_directory,
@@ -135,6 +136,7 @@ def visualize_reconstruction(
"device": device,
**render_flyaround_kwargs,
}
# pyrefly: ignore [bad-argument-type]
render_flyaround(**render_kwargs)