Skip to content

chore(mypy): remove the no-op strict = false override - #4697

Merged
d-v-b merged 6 commits into
zarr-developers:mainfrom
d-v-b:chore/remove-noop-mypy-strict-override
Dec 4, 2026
Merged

d-v-b merged 6 commits into
zarr-developers:mainfrom
d-v-b:chore/remove-noop-mypy-strict-override

Conversation

@d-v-b

@d-v-b d-v-b commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

removes some tool.mypy.overrides that weren't doing anything, and uses a type-narrowing method in an fsspec test.

self-merge-worthy

Author attestation

  • I am a human, these are my changes, and I have reviewed and understood every change and can explain why each is correct.

TODO

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.md
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

d-v-b added 6 commits December 1, 2026 09:48
mypy applies `strict` only when it is true, so `strict = false` in a
per-module override is ignored. The 14 entries listed there (modules and
globs) were already checked strictly. Remove the block, and reword the
TODO on the `ignore_errors` list that pointed at it.

Assisted-by: ClaudeCode:claude-opus-5-5
Narrow the subgroup returned by `AsyncGroup.getitem` to `AsyncGroup`
before calling `group_keys`, which was the module's only mypy error, and
remove `tests.test_store.test_fsspec` from the `ignore_errors` list so the
module's own code is type-checked like the rest of the tests.

Assisted-by: ClaudeCode:claude-opus-5-5
numcodecs main now warns that its Pickle codec is deprecated whenever one
is created, and the suite turns warnings into errors, so the pickle
decode-gate tests in test_v2.py fail in the upstream-dependencies job.
Those tests create Pickle codecs on purpose, so ignore that warning for
them. Released numcodecs doesn't warn, so the filter ignores the warning
rather than requiring it.

Assisted-by: ClaudeCode:claude-opus-5-5
`AsyncGroup.get_group` returns an `AsyncGroup` and raises if the member is
an array, so the test needs no isinstance assert to type-check.

Assisted-by: ClaudeCode:claude-opus-5-5
@d-v-b
d-v-b merged commit 5d8689b into zarr-developers:main Dec 4, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant