Skip to content

Commit

Permalink
MyPy: fix error with latest versions of MyPy
Browse files Browse the repository at this point in the history
	Incompatible types in assignment (expression has type "...",
	target has type "str")  [assignment]
  • Loading branch information
DimitriPapadopoulos committed Aug 4, 2024
1 parent a938c1e commit e8e271c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/hatchling/metadata/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8e271c

Please sign in to comment.