Skip to content

Commit 33c2073

Browse files
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>
1 parent 829e19b commit 33c2073

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dargs/dargs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,10 @@ def _check_exist(self, argdict: dict, path=None):
414414
)
415415

416416
def _check_data(self, value: Any, path=None):
417-
if not (isinstance(value, self.dtype)
418-
or (float in self.dtype and isinstance(value, Real))):
417+
if not (
418+
isinstance(value, self.dtype)
419+
or (float in self.dtype and isinstance(value, Real))
420+
):
419421
raise ArgumentTypeError(
420422
path,
421423
f"key `{self.name}` gets wrong value type, "

0 commit comments

Comments
 (0)