Skip to content

Fix pyrefly type errors in test_embedding_modules.py#3791

Open
spmex wants to merge 1 commit intometa-pytorch:mainfrom
spmex:export-D93962697
Open

Fix pyrefly type errors in test_embedding_modules.py#3791
spmex wants to merge 1 commit intometa-pytorch:mainfrom
spmex:export-D93962697

Conversation

@spmex
Copy link

@spmex spmex commented Feb 21, 2026

Summary:
Fix pyrefly type checking test 281475269894183.

Added # pyrefly: ignore[bad-argument-type] before 7 .qconfig = torch.quantization.QConfig(...) assignments. Pyrefly types nn.Module.__setattr__ as accepting Module | Tensor, so assigning a QConfig triggers a type error.

Differential Revision: D93962697

Summary:
Fix pyrefly type checking test [281475269894183](https://www.internalfb.com/intern/test/281475269894183).

Added `# pyrefly: ignore[bad-argument-type]` before 7 `.qconfig = torch.quantization.QConfig(...)` assignments. Pyrefly types `nn.Module.__setattr__` as accepting `Module | Tensor`, so assigning a `QConfig` triggers a type error.

Differential Revision: D93962697
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 21, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 21, 2026

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

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant