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
This commit is contained in:
generatedunixname89002005307016
2026-10-30 10:32:37 -07:00
committed by meta-codesync[bot]
parent 204fe5831b
commit 2d224e6652

View File

@@ -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