Skip to content

Commit 28e9077

Browse files
committed
A proper assertion for the fnames
1 parent c158911 commit 28e9077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def _init() -> Tuple[List[str], str, str]:
9696
fnames = eval(config['install.py']['files'])
9797
assert type(src_dir) is str
9898
assert type(dst_dir) is str
99-
assert type(fnames) is List[str]
99+
assert type(fnames) is list
100+
assert all((isinstance(fname, str) for fname in fnames))
100101
src_dir = os.path.relpath(src_dir)
101102
dst_dir = os.path.relpath(dst_dir)
102103
return (fnames, src_dir, dst_dir)

0 commit comments

Comments
 (0)