Skip to content

Use stdlib importlib.metadata for typing - #1162

Merged
layday merged 1 commit into
pypa:mainfrom
layday:layday/better-importlib-metadata-types
Aug 16, 2026
Merged

Use stdlib importlib.metadata for typing#1162
layday merged 1 commit into
pypa:mainfrom
layday:layday/better-importlib-metadata-types

Conversation

@layday

@layday layday commented Aug 16, 2026

Copy link
Copy Markdown
Member

Description

importlib.metadata has better types than the PyPI package.

SimplePath is not exported before Python 3.15 and is only used in a test fixture.

I don't think a changelog entry is necessary for this.

Changelog

  • Added changelog fragment: docs/changelog/<pr_number>.<type>.rst
    • Types: feature, bugfix, doc, removal, misc
    • Example: 123.feature.rst containing Add custom backend support - by :user:`yourname`

Checklist

  • Tests pass locally (tox)
  • Code follows project style (tox -e fix)
  • Type checks pass (tox -e type)
  • Documentation builds (tox -e docs)

It's got better types than the PyPI package.

`SimplePath` is not exported before Python 3.15 and is only
used in a test fixture.
@layday layday added this to the v2.0.0 milestone Aug 16, 2026
@layday
layday merged commit 3e7a445 into pypa:main Aug 16, 2026
60 checks passed
@layday
layday deleted the layday/better-importlib-metadata-types branch August 16, 2026 21:07
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