Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dargs/dargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down