Skip to content

feat: Type Annotations#688

Open
dodamih wants to merge 10 commits intomasterfrom
dodam/typing
Open

feat: Type Annotations#688
dodamih wants to merge 10 commits intomasterfrom
dodam/typing

Conversation

@dodamih
Copy link
Contributor

@dodamih dodamih commented Mar 12, 2026

Claude generated type annotations.

Doesn't break zutils unit tests, but might be good to test on others' code.

dodamih and others added 9 commits March 12, 2026 13:34
Add PEP 561 py.typed marker, mypy configuration, and include
py.typed in package_data for downstream type checking support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for exceptions.py, threaded_queue.py, lru.py,
provenance.py, and skeleton.py - modules with no internal deps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for lib.py (Vec, Bbox, helpers), paths.py,
secrets.py, scheduler.py, chunks.py, mesh.py, and volumecutout.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for connectionpools.py, storage/storage.py,
storage/storage_interfaces.py, and storage/__init__.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for cacheservice.py and
datasource/precomputed/metadata.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for all precomputed datasource submodules:
image (rx, tx, xfer, common, __init__), mesh (common, unsharded,
metadata, multilod, __init__), skeleton (unsharded, sharded,
metadata, __init__), annotation (metadata, reader, __init__),
and common, mmh3, sharding, spatial_index, __init__.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type annotations for boss, n5, zarr2, zarr3, and graphene
datasource modules including metadata, image, and mesh submodules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type all method signatures in CloudVolumePrecomputed and
CloudVolumeGraphene classes, plus the frontends __init__.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Type cloudvolume.py (CloudVolume, SharedConfiguration, plugin registry),
dask.py, server.py, and sharedmemory.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@william-silversmith
Copy link
Contributor

william-silversmith commented Mar 12, 2026

I think this is too many changes to review at once. If it was generated by a tool that was known to be 100% correct all the time (e.g. like a compiler or linter), that would be one thing, but I'm not comfortable with large-scale changes like this otherwise.

A lot of these are adding the "Any" type anyway...

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.

2 participants