Skip to content

Commit 4691b2f

Browse files
committed
Fix YAML update logic
1 parent 8f11416 commit 4691b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snooty/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def update(self, path: Path, optional_text: Optional[str] = None) -> None:
284284
elif ext == '.yaml' and prefix in self.yaml_mapping:
285285
file_id = os.path.basename(path)
286286
giza_category = self.yaml_mapping[prefix]
287-
needs_rebuild = set((file_id)).union(*(
287+
needs_rebuild = set((file_id,)).union(*(
288288
category.dg.dependents[file_id] for category in self.yaml_mapping.values()))
289289
logger.debug('needs_rebuild: %s', ','.join(needs_rebuild))
290290
for file_id in needs_rebuild:

0 commit comments

Comments
 (0)