mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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
10 lines
234 B
Python
10 lines
234 B
Python
"""Backward compatibility module for torch.onnx.utils."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
__all__: list[str] = []
|
|
|
|
# pyrefly: ignore # deprecated
|
|
from torch.onnx._internal.torchscript_exporter.utils import * # noqa: F401,F403
|