mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[BE] wrap deprecated function/class with typing_extensions.deprecated
(#126898)"
This reverts commit 749a132fb0a8325cbad4734a563aa459ca611991. Reverted https://github.com/pytorch/pytorch/pull/126898 on behalf of https://github.com/fbgheith due to switching typing-extensions=4.3.0 to 4.9.0 causes internal failure ([comment](https://github.com/pytorch/pytorch/pull/126898#issuecomment-2142884456))
This commit is contained in:
@ -723,7 +723,7 @@ class TestPythonPytree(TestCase):
|
||||
self.y = y
|
||||
|
||||
with self.assertWarnsRegex(
|
||||
FutureWarning, "torch.utils._pytree._register_pytree_node"
|
||||
UserWarning, "torch.utils._pytree._register_pytree_node"
|
||||
):
|
||||
py_pytree._register_pytree_node(
|
||||
DummyType,
|
||||
|
Reference in New Issue
Block a user