mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-06-17 04:28:54 +08:00
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:
committed by
meta-codesync[bot]
parent
b73d735ecf
commit
05025bf005
@@ -141,6 +141,7 @@ def sample_farthest_points_naive(
|
||||
|
||||
for n in range(N):
|
||||
# Initialize an array for the sampled indices, shape: (max_K,)
|
||||
# pyrefly: ignore [no-matching-overload]
|
||||
sample_idx_batch = torch.full(
|
||||
# pyre-fixme[6]: For 1st param expected `Union[List[int], Size,
|
||||
# typing.Tuple[int, ...]]` but got `Tuple[Tensor]`.
|
||||
|
||||
Reference in New Issue
Block a user