mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Add pyrefly suppressions (#164748)
Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283 Test plan: dmypy restart && python3 scripts/lintrunner.py -a pyrefly check step 1: delete lines in the pyrefly.toml file from the `project-excludes` field step 2: run pyrefly check step 3: add suppressions, clean up unused suppressions before: https://gist.github.com/maggiemoss/4b3bf2037014e116bc00706a16aef199 after: 0 errors (4,263 ignored) Pull Request resolved: https://github.com/pytorch/pytorch/pull/164748 Approved by: https://github.com/oulgen
This commit is contained in:
committed by
PyTorch MergeBot
parent
5e47b4dd60
commit
b13cd141b3
@ -958,7 +958,6 @@ class Optimizer:
|
||||
r"""Make a deep copy of value, casting all tensors to device of param."""
|
||||
if isinstance(value, torch.Tensor):
|
||||
return Optimizer._process_value_according_to_param_policy(
|
||||
# pyrefly: ignore # bad-argument-type
|
||||
param,
|
||||
value,
|
||||
# pyrefly: ignore # bad-argument-type
|
||||
|
Reference in New Issue
Block a user