importlib-metadata breaking changes
importlib-metadata 10.2.0 (November 9, 2026) is its newest release with breaking changes. The first: JSON-compatible metadata now returns License-File, Import-Name and Import-Namespace as lists in importlib-metadata 10.2.0. Every breaking API change we have recorded in importlib-metadata on PyPI: 27 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 10.2.0, released November 9, 2026. Source repository
Its 9.1.0 release drops Python 3.10. Python end of life dates.
- From 9.1.0 to 10.2.0: 10 breaking changes in 3 versions.
- From 5.0.0 to 10.2.0: 25 breaking changes in 10 versions.
importlib-metadata 10.2.0 breaking changes
- Behavior changed
These fields are now always lists in JSON-compatible metadata, even when only one value is present, so code expecting a single string must handle a list instead. github.com
importlib-metadata 10.1.0 breaking changes
- Behavior changed
Where a path supplies more than one metadata directory for a distribution, discovery again reports them in the order the path supplies rather than preferring the lexicographically greater directory name. Code that relied on the v9.1.0... github.com
importlib-metadata 10.0.0 breaking changes
- Behavior changed
When providers supply objects from importlib.metadata, they are now converted to the importlib_metadata classes, so code that relies on the original types may see different behavior. github.com - Signature changed
importlib_metadata.distribution
Was def distribution(distribution_name: str) -> Distribution; now def distribution(distribution_name: str) -> IDistribution. pypi.org - Signature changed
importlib_metadata.Distribution.files
Was files: list[PackagePath] | None; now files: list[IPackagePath] | None. pypi.org - Signature changed
importlib_metadata.Distribution.metadata
Was metadata: _meta.PackageMetadata; now metadata: PackageMetadata. pypi.org - Signature changed
importlib_metadata.distributions
Was def distributions(**kwargs) -> Iterable[Distribution]; now def distributions(**kwargs) -> Iterable[IDistribution]. pypi.org - Signature changed
importlib_metadata.files
Was def files(distribution_name: str) -> list[PackagePath] | None; now def files(distribution_name: str) -> list[IPackagePath] | None. pypi.org - Signature changed
importlib_metadata.metadata
Was def metadata(distribution_name: str) -> _meta.PackageMetadata; now def metadata(distribution_name: str) -> PackageMetadata. pypi.org - Signature changed
importlib_metadata.PackagePath.dist
Was dist: Distribution; now dist: IDistribution. pypi.org
importlib-metadata 9.1.0 breaking changes
- Removed
Python 3.10 is end-of-life and is no longer supported; users on Python 3.10 must upgrade their Python version. github.com - Behavior changed
When a path has more than one metadata directory for a distribution, discovery now prefers the greater directory name by reverse lexicographic ordering instead of the previous choice. github.com
importlib-metadata 9.0.1 breaking changes
- Signature changed
importlib_metadata.SimplePath.__truediv__
Was def __truediv__(self, other: str | os.PathLike[str]) -> SimplePath; now def __truediv__(self, other: str | os.PathLike[str], /) -> SimplePath. pypi.org - Signature changed
importlib_metadata.SimplePath.joinpath
Was def joinpath(self, other: str | os.PathLike[str]) -> SimplePath; now def joinpath(self, other: str | os.PathLike[str], /) -> SimplePath. pypi.org
importlib-metadata 9.0.0 breaking changes
- Removed
importlib_metadata.PackagePath
importlib_metadata.PackagePath was removed in importlib-metadata 9.0.0 pypi.org - Behavior changed
Distribution.metadata
When metadata files are missing, Distribution.metadata and metadata() now raise MetadataNotFound, a subclass of FileNotFoundError, instead of returning None. Code that checks for None must catch the exception. github.com - Signature changed
importlib_metadata.Distribution.metadata
Was metadata: _meta.PackageMetadata | None; now metadata: _meta.PackageMetadata. pypi.org - Signature changed
importlib_metadata.metadata
Was def metadata(distribution_name: str) -> _meta.PackageMetadata | None; now def metadata(distribution_name: str) -> _meta.PackageMetadata. pypi.org
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
importlib-metadata 8.8.0 breaking changes
- Removed
The release removes Python 3.9 compatibility. Users on Python 3.9 should stay on 8.7.1 or upgrade their Python version. github.com - Removed
importlib_metadata.compat.py39
importlib_metadata.compat.py39 was removed in importlib-metadata 8.8.0 pypi.org
importlib-metadata 8.0.0 breaking changes
- Removed
importlib_metadata.Distribution.__new__
importlib_metadata.distribution().__new__() was removed in importlib-metadata 8.0.0 pypi.org - Behavior changed
Message.__getitem__
Message.__getitem__ raises a KeyError for missing keys instead of returning None. Code that relies on a None result must catch the KeyError or use .get(). github.com
And 1 more in this version.
importlib-metadata 7.0.0 breaking changes
- Removed
EntryPoint
EntryPoint objects no longer support tuple-style access by numeric index. Access attributes such as name, group and value instead. github.com
importlib-metadata 6.0.0 breaking changes
- Behavior changed
Distribution
Distribution and its subclasses can no longer be instantiated unless they define all abstract methods. Subclasses that leave any abstract method undefined must implement it before they can be used. github.com
importlib-metadata 5.0.0 breaking changes
- Removed
The compatibility shims for the deprecated entry point interfaces were removed. Code that relies on those old interfaces must move to the current entry point API. github.com - Signature changed
importlib_metadata.entry_points
Was def entry_points(**params) -> Union[EntryPoints, SelectableGroups]; now def entry_points(**params) -> EntryPoints. pypi.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.