From 3cf24449cd9d251fc4d399d0a6dd197dfd7aefe2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 02:30:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dargs/notebook.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dargs/notebook.py b/dargs/notebook.py index 3904bda..bc3e89c 100644 --- a/dargs/notebook.py +++ b/dargs/notebook.py @@ -157,7 +157,11 @@ def __init__(self, data: dict, arg: Argument | Variant): def _init_subdata(self): """Initialize sub ArgumentData.""" - if isinstance(self.data, dict) and isinstance(self.arg, Argument) and not self.arg.repeat: + if ( + isinstance(self.data, dict) + and isinstance(self.arg, Argument) + and not self.arg.repeat + ): sub_fields = self.arg.sub_fields.copy() # extend subfiles with sub_variants for vv in self.arg.sub_variants.values():