Skip to content


Browse files Browse the repository at this point in the history
fix: preserve empty names input or output file lists in params or res…
…ource functions
  • Loading branch information
johanneskoester committed Mar 2, 2022
1 parent 994b151 commit 0d19ab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions snakemake/
Expand Up @@ -1416,7 +1416,7 @@ def __init__(
for name in self._allowed_overrides:
setattr(self, name, functools.partial(self._used_attribute, _name=name))

if toclone:
if toclone is not None:
if custom_map is not None:
self.extend(map(custom_map, toclone))
elif plainstr:
Expand All @@ -1427,7 +1427,7 @@ def __init__(
if isinstance(toclone, Namedlist):
if fromdict:
if fromdict is not None:
for key, item in fromdict.items():
Expand Down
2 changes: 1 addition & 1 deletion snakemake/
Expand Up @@ -825,7 +825,7 @@ def _apply_wildcards(
and not isinstance(item_, Path)
raise WorkflowError(
"Function did not return str or list " "of str.", rule=self
"Function did not return str or list of str.", rule=self

if from_callable and apply_path_modifier and not incomplete:
Expand Down

0 comments on commit 0d19ab0

Please sign in to comment.