Skip to content

👌 Make ExtensionMetadata type public and use it in internal extensions - #12153

Merged
chrisjsewell merged 11 commits into
sphinx-doc:masterfrom
chrisjsewell:make-ExtensionMetadata-public
Mar 21, 2024
Merged

chrisjsewell merged 11 commits into
sphinx-doc:masterfrom
chrisjsewell:make-ExtensionMetadata-public

Conversation

@chrisjsewell

@chrisjsewell chrisjsewell commented Mar 20, 2024 •

Copy link
Copy Markdown
Member

This type alias has now been fully documented for public consumption.

This will be beneficial to the sphinx ecosystem,
to aide/encourage extension developers to provide the correct metadata.

I really don't see the rationale for this being private;
I feel it would be very good practice to encourage extensions to use it,
and thus make it more likely for them to provide the correct metadata.

@danieleades danieleades left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

big fan of this.

i've even redefined my own return type in plugins to keep mypy happy, so this would be a big improvement

Comment thread sphinx/util/typing.py Resolved
Comment thread sphinx/util/typing.py Resolved
Comment thread sphinx/util/typing.py Resolved
Comment thread sphinx/util/typing.py Resolved
@picnixz

picnixz commented Mar 21, 2024

Copy link
Copy Markdown
Member

I really don't see the rationale for this being private;

The rationale was probably because we did not document it when we introduced it at first.

@chrisjsewell

Copy link
Copy Markdown
Member Author

The rationale was probably because we did not document it when we introduced it at first.

fair, well now that is all done 😄

@chrisjsewell
chrisjsewell requested a review from picnixz March 21, 2024 09:22
Comment thread sphinx/util/typing.py Resolved
Co-authored-by: Bénédikt Tran <[email protected]>
@chrisjsewell chrisjsewell changed the title 👌 Make ExtensionMetadata typed dict public and use it in internal extensions 👌 Make ExtensionMetadata type public and use it in internal extensions Mar 21, 2024
Comment thread CHANGES.rst Resolved
@danieleades

Copy link
Copy Markdown
Contributor

just let me know when this is released and i can start using it!

@chrisjsewell
chrisjsewell merged commit d59b158 into sphinx-doc:master Mar 21, 2024
@chrisjsewell
chrisjsewell deleted the make-ExtensionMetadata-public branch March 21, 2024 15:19
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 21, 2024
@AA-Turner AA-Turner added this to the 7.3.0 milestone Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants