mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +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: uncomment lines in the `pyrefly.toml` file before: https://gist.github.com/maggiemoss/911b4d0bc88bf8cf3ab91f67184e9d46 after: ``` INFO Checking project configured at `/Users/maggiemoss/python_projects/pytorch/pyrefly.toml` INFO 0 errors (1,152 ignored) ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/164513 Approved by: https://github.com/oulgen
8 lines
220 B
Python
8 lines
220 B
Python
from torch._C import FileCheck as FileCheck
|
|
|
|
from . import _utils
|
|
|
|
# pyrefly: ignore # deprecated
|
|
from ._comparison import assert_allclose, assert_close as assert_close
|
|
from ._creation import make_tensor as make_tensor
|