Skip to content

Conversation

dstansby
Copy link
Contributor

@dstansby dstansby commented Oct 2, 2024

This renames _Codec to CodecBase, so that it gets documented and linked from e.g. ArrayArrayCodec, which is currently missing a link to it.

I think in general it's nicer to document the full class heirarchy, but put warnings where we don't expect users to use specific classes. This fixes some broken links, a small part of #2291

@dstansby dstansby added documentation Improvements to the documentation V3 labels Oct 2, 2024


class _Codec(Metadata, Generic[CodecInput, CodecOutput]):
class CodecBase(Metadata, Generic[CodecInput, CodecOutput]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore this suggestion, but somehow the name BaseCodec seems a bit more natural than CodecBase. Maybe it seems a bit more consistent with names like RemoteStore which follow the <Qualification><QualifiedEntity> schema?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think that's a good suggestion, changed

@dstansby dstansby changed the title Add CodecBase to the docs Add BaseCodec to the docs Oct 5, 2024
@dstansby dstansby requested a review from d-v-b October 5, 2024 20:03
@d-v-b d-v-b merged commit 046c174 into zarr-developers:v3 Oct 5, 2024
20 checks passed
@dstansby dstansby deleted the doc-codecbase branch October 5, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants