-
Notifications
You must be signed in to change notification settings - Fork 21
add strict zip options #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -316,6 +316,7 @@ def __parse_dishes(menu_html: html.Element, canteen: Canteen) -> List[Dish]: | |
| dish_markers_allergen, | ||
| dish_markers_type, | ||
| dish_markers_meatless, | ||
| strict=True, | ||
| ): | ||
|
Comment on lines
316
to
320
|
||
| # parse labels | ||
| labels = set() | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,7 +26,7 @@ def prefetch(self, texts): | |||||
| return | ||||||
|
|
||||||
| result = self.translator.translate_text(to_translate, source_lang=self.source, target_lang=self.target) | ||||||
| for original, translation in zip(to_translate, result): | ||||||
| for original, translation in zip(to_translate, result, strict=True): | ||||||
|
||||||
| for original, translation in zip(to_translate, result, strict=True): | |
| for original, translation in zip(to_translate, result): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires-pythonwas bumped to >=3.10 here, but the repo’s.python-versionfile (used by CI viaactions/setup-python) still targets ">=3.9" and the README still mentions Python 3.9+. Please update.python-version(and any user-facing docs) to avoid CI/runtime inconsistencies now that code uses Python 3.10-only features (e.g.,zip(..., strict=True)).