Skip to content

Commit

Permalink
Rename 'localize.metadata' to 'localize.message'.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 11, 2024
1 parent 800aa8d commit 9fae83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _discover_resolvers():
return filter(None, declared)

@property
@apply(localize.metadata)
@apply(localize.message)
def metadata(self) -> _meta.PackageMetadata:
"""Return the parsed metadata for this Distribution.
Expand Down
2 changes: 1 addition & 1 deletion importlib_metadata/_compat/localize.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def dist(
return cast(importlib_metadata.Distribution, dist)


def metadata(
def message(
input: importlib_metadata._adapters.Message | email.message.Message,
) -> importlib_metadata._adapters.Message:
if isinstance(input, importlib_metadata._adapters.Message):
Expand Down

0 comments on commit 9fae83b

Please sign in to comment.