Skip to content

Commit

Permalink
Use Sequence[str] for args type in main_convert
Browse files Browse the repository at this point in the history
Just for consistency with the other main_* modules.

Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Jan 26, 2024
1 parent 94aaf38 commit 3bd2747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_build/cli/main_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from argparse import Namespace
from os.path import abspath, expanduser
from typing import Iterable
from typing import Sequence

from .. import api
from ..conda_interface import ArgumentParser
Expand Down Expand Up @@ -37,7 +37,7 @@
"""


def parse_args(args: Iterable[str] | None) -> tuple[ArgumentParser, Namespace]:
def parse_args(args: Sequence[str] | None) -> tuple[ArgumentParser, Namespace]:
parser = ArgumentParser(
prog="conda convert",
description="""
Expand Down Expand Up @@ -120,7 +120,7 @@ def parse_args(args: Iterable[str] | None) -> tuple[ArgumentParser, Namespace]:
return parser, parser.parse_args(args)


def execute(args: Iterable[str] | None = None):
def execute(args: Sequence[str] | None = None):
_, parsed = parse_args(args)
files = parsed.files
del parsed.__dict__["files"]
Expand Down

0 comments on commit 3bd2747

Please sign in to comment.