diff --git a/backend/src/hatchling/cli/dep/core.py b/backend/src/hatchling/cli/dep/core.py index c0703a519..c02861f3d 100644 --- a/backend/src/hatchling/cli/dep/core.py +++ b/backend/src/hatchling/cli/dep/core.py @@ -129,4 +129,4 @@ def dependencies_in_sync( environment = default_environment() installed_distributions = DistributionCache(sys_path) - return all(dependency_in_sync(requirement, environment, installed_distributions) for requirement in requirements) + return all(dependency_in_sync(requirement, environment, installed_distributions) for requirement in requirements) # type: ignore[arg-type] diff --git a/backend/src/hatchling/metadata/spec.py b/backend/src/hatchling/metadata/spec.py index 501a88260..16cb6d1c5 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 diff --git a/src/hatch/cli/terminal.py b/src/hatch/cli/terminal.py index 0af7be045..ca79bf755 100644 --- a/src/hatch/cli/terminal.py +++ b/src/hatch/cli/terminal.py @@ -42,8 +42,8 @@ def __init__( is_interactive: bool, verbosity: int, spinner_style: str, - waiting_style: Style, - success_style: Style, + waiting_style: Style | str, + success_style: Style | str, initializer: Callable, finalizer: Callable, ): diff --git a/src/hatch/dep/sync.py b/src/hatch/dep/sync.py index c0703a519..e9a472888 100644 --- a/src/hatch/dep/sync.py +++ b/src/hatch/dep/sync.py @@ -129,4 +129,5 @@ def dependencies_in_sync( environment = default_environment() installed_distributions = DistributionCache(sys_path) - return all(dependency_in_sync(requirement, environment, installed_distributions) for requirement in requirements) + return all(dependency_in_sync(requirement, environment, installed_distributions) for requirement in requirements) # type: ignore[arg-type] +