From f9e15d41684e65753a068f4fd21dd0b4901b47ba Mon Sep 17 00:00:00 2001 From: Vincent Moens Date: Mon, 9 Dec 2024 14:38:01 -0800 Subject: [PATCH] Update [ghstack-poisoned] --- tensordict/tensorclass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensordict/tensorclass.py b/tensordict/tensorclass.py index b5cbd132b..ae2990887 100644 --- a/tensordict/tensorclass.py +++ b/tensordict/tensorclass.py @@ -3484,7 +3484,9 @@ def data(self): self.tensordicts, raise_if_non_unique=True ).data except ValueError: - raise AttributeError("Cannot get the non-unique data of a NonTensorStack. Use .tolist() instead.") + raise AttributeError( + "Cannot get the non-unique data of a NonTensorStack. Use .tolist() instead." + ) _register_tensor_class(NonTensorStack)