Skip to content

Commit d6b7456

Browse files
Revert "Add __init__.pyi to torch/linalg (pytorch#160750)"
This reverts commit 9a665ca. Reverted pytorch#160750 on behalf of https://github.com/jeanschmidt due to Seems that those errors are legitimate, and there is no test plan. I'll be proceeding with a revert ([comment](pytorch#160750 (comment)))
1 parent d33840c commit d6b7456

File tree

2 files changed

+2
-210
lines changed

2 files changed

+2
-210
lines changed

test/typing/reveal/namedtuple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
t_qr = torch.linalg.qr(t)
1313
t_qr[0].shape == [2, 2] # noqa: B015
1414
t_qr.Q.shape == [2, 2] # noqa: B015
15-
# Fixed: Now properly typed as torch.return_types.qr thanks to stub file
16-
reveal_type(t_qr) # E: torch.return_types.qr
15+
# TODO: Fixme, should be Tuple[{Tensor}, {Tensor}, fallback=torch.return_types.qr]
16+
reveal_type(t_qr) # E: Any

torch/linalg/__init__.pyi

Lines changed: 0 additions & 208 deletions
This file was deleted.

0 commit comments

Comments
 (0)