Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #316 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 12 12
Lines 996 999 +3
=======================================
+ Hits 993 996 +3
Misses 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
conjunction parameter to natural_list
|
Any interest in this? It adds a conjunction argument to natural_list so callers can get "or" instead of the hardcoded "and". |
0cedecf to
6eb4231
Compare
Wkhanex
left a comment
There was a problem hiding this comment.
One-shot generators work with or, and and another conjunction across empty, singleton and longer lists. Items are converted to strings once, and the new argument remains keyword-only.
Checked 6eb42314b866 with standalone Python 3.12.14 checks (19 passing assertions). I haven't run the full upstream suite. The generated _version module was supplied as metadata only; formatter code was unchanged.
Fixes #214
Changes proposed in this pull request:
conjunctionparameter tonatural_list, defaulting to"and"so existing behaviour is unchanged."or"or"and also".