Use strict=True with zip to ensure length equality#4011
Use strict=True with zip to ensure length equality#4011janosh merged 7 commits intomaterialsproject:masterfrom
strict=True with zip to ensure length equality#4011Conversation
janosh
left a comment
There was a problem hiding this comment.
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
janosh
left a comment
There was a problem hiding this comment.
thanks as always @DanielYang59!
|
No problem. Thanks for reviewing. Fingers crossed that this PR wouldn't be pinged a hundred times :) |
Summary
strict=Truewhenzipto ensure length equality @janosh, to finish Drop Python 3.9 support #4009 (comment)TODOs
strictkeyword is forzipnot other function