-
Notifications
You must be signed in to change notification settings - Fork 7
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
Drop Python 3.9 #287
Drop Python 3.9 #287
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.
LGTM, thanks!
I guess the zip strict=False thing is just ruff being annoyingly opinionated?
bio2zarr/vcf2zarr/verification.py
Outdated
@@ -114,7 +114,7 @@ def assert_format_val_equal(vcf_val, zarr_val, vcf_type, vcf_number): | |||
assert isinstance(vcf_val, np.ndarray) | |||
if vcf_type in ("String", "Character"): | |||
assert len(vcf_val) == len(zarr_val) | |||
for v, z in zip(vcf_val, zarr_val): | |||
for v, z in zip(vcf_val, zarr_val, strict=False): |
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.
What's the motivation for the strict=False
arguments here and elsewhere? In most of these cases I would have thought we'd want strict=True
, so adding the explicit False argument gives a false impression that we expect the iterators to be different lengths.
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.
Yes, this was automatically fixed by ruff, but you're right that we want strict=True
. I've changed this here and in vcztools.
24957e7
to
c9c7901
Compare
c9c7901
to
7db7586
Compare
No description provided.