Skip to content

Commit 01b43cb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b297906 commit 01b43cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dpdata/system.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def __init__(
183183
return
184184
if file_name is None:
185185
return
186-
self.post_func_skip_list = post_func_skip_list if post_func_skip_list is not None else []
186+
self.post_func_skip_list = (
187+
post_func_skip_list if post_func_skip_list is not None else []
188+
)
187189
self.from_fmt(
188190
file_name,
189191
fmt,
@@ -197,7 +199,6 @@ def __init__(
197199
if type_map is not None:
198200
self.apply_type_map(type_map)
199201

200-
201202
def check_data(self):
202203
"""Check if data is correct.
203204
@@ -234,8 +235,9 @@ def from_fmt_obj(self, fmtobj, file_name, **kwargs):
234235
self.data = {**self.data, **data}
235236
self.check_data()
236237
if hasattr(fmtobj.from_system, "post_func"):
237-
assert isinstance(self.post_func_skip_list, list), \
238-
"post_func_skip_list should be a list of string"
238+
assert isinstance(
239+
self.post_func_skip_list, list
240+
), "post_func_skip_list should be a list of string"
239241
for post_f in fmtobj.from_system.post_func:
240242
if post_f in self.post_func_skip_list:
241243
continue

0 commit comments

Comments
 (0)