Skip to content

Commit

Permalink
revert type annotation change
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Lemoine committed Aug 31, 2023
1 parent 057015b commit 789a9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion align_data/common/alignment_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def unprocessed_items(self, items=None) -> list | filter:

return items_to_process

def fetch_entries(self):
def fetch_entries(self) -> Generator[Article, None, None]:
"""Get all entries to be written to the file."""
for item in tqdm(self.unprocessed_items(), desc=f"Processing {self.name}"):
entry = self.process_entry(item)
Expand Down

0 comments on commit 789a9c8

Please sign in to comment.