Skip to content

Commit

Permalink
🏷️(ozi-new interactive): fix license_expression dialog typing
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 28, 2024
1 parent 4babcd3 commit 399d270
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,14 @@ def license_expression( # noqa: C901
) -> tuple[None | list[str] | str, list[str], dict[str, str]]:
_license_expression: str = ''
while True:
possible_spdx: Sequence[str] | None = (
_possible_spdx: Sequence[str] | None = (
METADATA.spec.python.pkg.license.ambiguous.get(
_license,
(),
None,
)
)
_default = possible_spdx[0] if possible_spdx else ''
possible_spdx: Sequence[str] = _possible_spdx if _possible_spdx else []
_default = possible_spdx[0]
for n, i in enumerate(output):
if i.startswith('--license-expression'):
_default = output.pop(n).replace('--license-expression=', '').strip('"')
Expand Down

0 comments on commit 399d270

Please sign in to comment.