diff --git a/backend/src/hatchling/metadata/spec.py b/backend/src/hatchling/metadata/spec.py index 501a88260..25c4787de 100644 --- a/backend/src/hatchling/metadata/spec.py +++ b/backend/src/hatchling/metadata/spec.py @@ -67,7 +67,7 @@ def project_metadata_from_core_metadata(core_metadata: str) -> dict[str, Any]: header_registry = HeaderRegistry() message = email.message_from_string(core_metadata) - metadata = {} + metadata: dict[str, Any] = {} if name := message.get('Name'): metadata['name'] = name