Skip to content

add typing to mutagen.File#695

Closed
scratchmex wants to merge 1 commit into
quodlibet:mainfrom
scratchmex:gh-647--register-public-symbols
Closed

add typing to mutagen.File#695
scratchmex wants to merge 1 commit into
quodlibet:mainfrom
scratchmex:gh-647--register-public-symbols

Conversation

@scratchmex

@scratchmex scratchmex commented Nov 16, 2025

Copy link
Copy Markdown

this is needed for py.typed libraries because

Imported symbols are considered private by default.

ref: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface

I tested locally and the types are detected ok
image

fixes gh-647

edit: this now only include the typing to the signature of mutagen.File which I previously added

this is needed for py.typed libraries because
> Imported symbols are considered private by default.

ref: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface

fixes quodlibetgh-647
@lazka

lazka commented Dec 24, 2025

Copy link
Copy Markdown
Member

I've merged #696 instead, since this included unrelated changes.

Thanks!

@lazka lazka closed this Dec 24, 2025
@scratchmex scratchmex changed the title register public symbols in __all__ add typing to mutagen.File Dec 24, 2025
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.

Register all public exports as public

2 participants