mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
utils: Assert desired contract for normalize_paths()
This is a separate commit so it can be dropped during a rebase or revert independently.
This commit is contained in:
parent
9283f2f03f
commit
a0cd55fd6d
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ def normalize_paths(paths, parent=os.curdir):
|
|||
:rtype:
|
||||
[str]
|
||||
"""
|
||||
assert isinstance(paths, list), paths # nosec (for bandit)
|
||||
return [
|
||||
normalize_path(p, parent) for p in parse_comma_separated_list(paths)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue