3
0
Fork 0

Compare commits

..

No commits in common. "4382601fe0c43428ec884e88179a69495e2eddbd" and "0588a0a2d39f90cea9e26ec34d0652cdbb4b4c8e" have entirely different histories.

2 changed files with 2 additions and 11 deletions

View file

@ -62,7 +62,7 @@ def make_cli_config(ctx: typer.Context):
return make_config(files=ctx.params.get("config_paths") or None) return make_config(files=ctx.params.get("config_paths") or None)
def typer_callback( # pylint: disable=unused-argument def typer_callback(
ctx: typer.Context, ctx: typer.Context,
config_paths: Annotated[ config_paths: Annotated[
Optional[List[Path]], Optional[List[Path]],
@ -73,14 +73,7 @@ def typer_callback( # pylint: disable=unused-argument
help="Config path (may be specified more than once)", help="Config path (may be specified more than once)",
), ),
] = None, ] = None,
runas_username: Annotated[ ): # pylint: disable=unused-argument
str,
typer.Option(
"--runas",
help="Username responsible for running the command (where applicable).",
),
] = None,
):
""" """
Generic callback for use with top-level commands. This adds some Generic callback for use with top-level commands. This adds some
top-level args: top-level args:

View file

@ -126,8 +126,6 @@ def uuid_column(*args, **kwargs):
kwargs.setdefault("primary_key", True) kwargs.setdefault("primary_key", True)
kwargs.setdefault("nullable", False) kwargs.setdefault("nullable", False)
kwargs.setdefault("default", make_true_uuid) kwargs.setdefault("default", make_true_uuid)
if kwargs["primary_key"]:
kwargs.setdefault("doc", "UUID primary key for the table.")
return sa.Column(*args, **kwargs) return sa.Column(*args, **kwargs)