Skip to content

Commit

Permalink
Add optional_existing attribute to target collections.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Dec 23, 2024
1 parent 3d38873 commit 25b489b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion law/target/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class SiblingFileCollectionBase(FileCollection):

@classmethod
def _exists_in_basenames(cls, target, basenames, optional_existing, target_dirs):
if optional_existing is not None and target.optional:
if optional_existing not in (None, no_value) and target.optional:
return optional_existing
if isinstance(target, SiblingFileCollectionBase):
return target._exists_fwd(
Expand Down

0 comments on commit 25b489b

Please sign in to comment.