-
Notifications
You must be signed in to change notification settings - Fork 871
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
Use strict=True
with zip
to ensure length equality
#4011
Conversation
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.
thanks @DanielYang59! that was way faster than i expected. 👍
did you notice any cases where strict=True
stood out as potentially problematic? knowing pymatgen's test coverage, i assume there are cases where strict=True
wouldn't raise a CI warning despite strict=False
being required for backwards compatibility
Sorry I didn't really go through each of these replacements (just a batch replace and fixed those CI failures in 89dc247 and b149ebb). Perhaps I should mark it as draft now and fully go through all changes later.
With |
sorry, i meant error, not warning
agreed
not strictly necessary imo. these issues are very hard to spot by just looking at the code. overall less time spent reporting and fixing errors as they occur |
Yes that's what I thought... Though sounds a bit irresponsible, but it's quite hard just by eyeballing |
strict=True
when zip
to ensure length equalitystrict=True
with zip
to ensure length equality
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.
thanks as always @DanielYang59!
No problem. Thanks for reviewing. Fingers crossed that this PR wouldn't be pinged a hundred times :) |
Summary
strict=True
whenzip
to ensure length equality @janosh, to finish Drop Python 3.9 support #4009 (comment)TODOs
strict
keyword is forzip
not other function