From 33c2073f16ac3fd2aba5fee6f56c26b85b7f8a46 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 20 Apr 2023 23:53:18 -0400 Subject: [PATCH] format codes (#31) * trigger format codes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- dargs/dargs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dargs/dargs.py b/dargs/dargs.py index 9c2ced1..98698e7 100644 --- a/dargs/dargs.py +++ b/dargs/dargs.py @@ -414,8 +414,10 @@ def _check_exist(self, argdict: dict, path=None): ) def _check_data(self, value: Any, path=None): - if not (isinstance(value, self.dtype) - or (float in self.dtype and isinstance(value, Real))): + if not ( + isinstance(value, self.dtype) + or (float in self.dtype and isinstance(value, Real)) + ): raise ArgumentTypeError( path, f"key `{self.name}` gets wrong value type, "