Skip to content

Commit

Permalink
Fix typing issue
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Sep 5, 2023
1 parent 4014bbc commit ec0c387
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pulpcore/cli/maven/repository.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Dict
import typing as t

import click
from pulp_glue.common.context import EntityFieldDefinition, PulpRemoteContext
from pulp_glue.common.context import EntityFieldDefinition, PulpRemoteContext, PulpRepositoryContext
from pulp_glue.common.i18n import get_translation
from pulp_glue.maven.context import PulpMavenArtifactContentContext, PulpMavenRepositoryContext
from pulpcore.cli.common.generic import (
Expand Down Expand Up @@ -93,15 +93,17 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) ->
@remote_option
@pass_repository_context
def add_cached_content(
repository_ctx: PulpMavenRepositoryContext,
repository_ctx: PulpRepositoryContext,
remote: EntityFieldDefinition,
) -> None:
"""
Add cached Maven content to the repository. The remote is used to identify which
content created by pulpcore-content to add to the repository. If a remote is not
specified, the remote associated with the repository will be used.
"""
body: Dict[str, Any] = {}
assert isinstance(repository_ctx, PulpMavenRepositoryContext)

body: t.Dict[str, t.Any] = {}
repository = repository_ctx.entity

if remote:
Expand Down

0 comments on commit ec0c387

Please sign in to comment.