From 2d224e66523039dbde1d24a86ecef4f8b1dcb038 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Fri, 30 Oct 2026 10:32:37 -0700 Subject: [PATCH] Suppress type errors for Pyrefly upgrade (landing group 135) Summary: This Phabricator Diff was generated from Pyrefly type-checker output by the per-target upgrade tool. It was not generated by an AI coding system. It adds only `# pyrefly: ignore[...]` comments for type errors reported by the upcoming Pyrefly version. It does not change Python runtime behavior or application logic. If this diff does not land before the Pyrefly upgrade, the associated type-checking tests will fail. Landing group: `c004445c7bbada027a0d112b6d018972b720eb832b6be71177fcfbbe4758bbd0` (attempt 1, 13 batches, 86 files) Merged patch SHA-256: `17964792f0a8a521b30c0c5a41641c2b6301018eba369246c7af786200728d97` #pyreupgrade Reviewed By: maggiemoss Differential Revision: D128539582 fbshipit-source-id: 6714747585617e68fa66c240a2c05bab8e2f792f --- pytorch3d/renderer/mesh/textures.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pytorch3d/renderer/mesh/textures.py b/pytorch3d/renderer/mesh/textures.py index bac350ea..e3873cf0 100644 --- a/pytorch3d/renderer/mesh/textures.py +++ b/pytorch3d/renderer/mesh/textures.py @@ -482,6 +482,7 @@ class TexturesAtlas(TexturesBase): else self._num_faces_per_mesh ) tex.valid = self.valid.clone() + # pyrefly: ignore[bad-assignment] tex._num_faces_per_mesh = num_faces return tex @@ -496,6 +497,7 @@ class TexturesAtlas(TexturesBase): else self._num_faces_per_mesh ) tex.valid = self.valid.detach() + # pyrefly: ignore[bad-assignment] tex._num_faces_per_mesh = num_faces return tex @@ -982,6 +984,7 @@ class TexturesUV(TexturesBase): if torch.is_tensor(self._num_faces_per_mesh) else self._num_faces_per_mesh ) + # pyrefly: ignore[bad-assignment] tex._num_faces_per_mesh = num_faces tex.valid = self.valid.clone() return tex @@ -1014,6 +1017,7 @@ class TexturesUV(TexturesBase): if torch.is_tensor(self._num_faces_per_mesh) else self._num_faces_per_mesh ) + # pyrefly: ignore[bad-assignment] tex._num_faces_per_mesh = num_faces tex.valid = self.valid.detach() return tex