polar: minor improvements, konsume: more type annotations
This commit is contained in:
parent
f3d5064ff2
commit
0f27071dcc
4 changed files with 50 additions and 40 deletions
|
@ -134,7 +134,8 @@ def get_files(pp: Paths, glob: str=DEFAULT_GLOB, sort: bool=True) -> Tuple[Path,
|
|||
warnings.warn(f"Treating {ss} as glob path. Explicit glob={glob} argument is ignored!")
|
||||
paths.extend(map(Path, do_glob(ss)))
|
||||
else:
|
||||
assert src.is_file(), src
|
||||
if not src.is_file():
|
||||
raise RuntimeError(f"Expected '{src}' to exist")
|
||||
# todo assert matches glob??
|
||||
paths.append(src)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue