Skip to content

Restore pyre-fixme comments removed by D106570032 typing migration#5829

Open
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D107411329
Open

Restore pyre-fixme comments removed by D106570032 typing migration#5829
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D107411329

Conversation

@q10

@q10 q10 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary:
D106570032 migrated fbgemm_gpu/test/ to Python 3.10+ typing (Optional/Dict/List → | None, dict, list). While doing so, several pyre-fixme[6] comments were removed in permute_indices_test.py and pack_segments_test.py, but the underlying type errors were not actually fixed by the migration. This caused the permute_indices-library-type-checking and pack_segments-library-type-checking tests to fail.

This change restores the pyre-fixme[6] suppressions, updated to use the new pipe-union syntax to stay consistent with the rest of the migration. No production behavior is changed — only test-file type suppressions.

Linked task: T273406771.

Session trajectory link

Reviewed By: cthi

Differential Revision: D107411329

Summary:
D106570032 migrated `fbgemm_gpu/test/` to Python 3.10+ typing (Optional/Dict/List → `| None`, `dict`, `list`). While doing so, several `pyre-fixme[6]` comments were removed in `permute_indices_test.py` and `pack_segments_test.py`, but the underlying type errors were not actually fixed by the migration. This caused the `permute_indices-library-type-checking` and `pack_segments-library-type-checking` tests to fail.

This change restores the `pyre-fixme[6]` suppressions, updated to use the new pipe-union syntax to stay consistent with the rest of the migration. No production behavior is changed — only test-file type suppressions.

Linked task: T273406771.

[Session trajectory link](https://www.internalfb.com/intern/devai/devmate/inspector/?id=7dfd7c17-c5ce-4697-bcad-d6b45ed32aad)

Reviewed By: cthi

Differential Revision: D107411329
@meta-cla meta-cla Bot added the cla signed label Jun 3, 2026
@meta-codesync

meta-codesync Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@q10 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D107411329.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant