-
Notifications
You must be signed in to change notification settings - Fork 59
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
ENH: Add support for argstr formatting of any iterable #614
Conversation
3c4c022
to
1985e96
Compare
c877ee6
to
3424174
Compare
I took this opportunity to fix a few typos and warnings which PyCharm complained about. |
Codecov ReportBase: 81.23% // Head: 81.16% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #614 +/- ##
==========================================
- Coverage 81.23% 81.16% -0.07%
==========================================
Files 20 20
Lines 4391 4391
Branches 1262 1262
==========================================
- Hits 3567 3564 -3
- Misses 820 823 +3
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Sets don't preserve order of insertion, unlike tuples and lists.
LGTM. |
Is it ok if I merge this? |
yes, sorry, thank you! I will create a new release during the weekend |
See #613 for context. I looked at the code path @effigies suggested where the fix should be implemented.
This PR should facilitate composition of interfaces producing and consuming iterable types, not just lists. Sets and tuples provide additional guarantees which are quite nice, such as uniqueness and size boundness respectively. Since strings and bytes also satisfy the
Iterable
protocol in Python, these need to be discarded explicitly in the instance type check.Closes #613