mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-16 05:25:58 +08:00
fix lint
This commit is contained in:
parent
33bb506b60
commit
18f4c20351
@ -22,12 +22,12 @@ def main() -> None:
|
|||||||
from . import _version
|
from . import _version
|
||||||
from .commands import command_functions
|
from .commands import command_functions
|
||||||
|
|
||||||
@click.group()
|
@click.group() # type: ignore
|
||||||
@click.version_option(version=_version.get_versions()["version"])
|
@click.version_option(version=_version.get_versions()["version"])
|
||||||
def _main() -> None:
|
def _main() -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for command in command_functions:
|
for command in command_functions:
|
||||||
_main.add_command(command)
|
_main.add_command(command) # type: ignore
|
||||||
|
|
||||||
_main()
|
_main() # type: ignore
|
||||||
|
@ -13,7 +13,7 @@ from ..session_factory import new_session
|
|||||||
from ..sessions import sessions_names
|
from ..sessions import sessions_names
|
||||||
|
|
||||||
|
|
||||||
@click.command(
|
@click.command( # type: ignore
|
||||||
name="b",
|
name="b",
|
||||||
help="for a byte stream as input",
|
help="for a byte stream as input",
|
||||||
)
|
)
|
||||||
|
@ -9,7 +9,7 @@ from ..session_factory import new_session
|
|||||||
from ..sessions import sessions_names
|
from ..sessions import sessions_names
|
||||||
|
|
||||||
|
|
||||||
@click.command(
|
@click.command( # type: ignore
|
||||||
name="i",
|
name="i",
|
||||||
help="for a file as input",
|
help="for a file as input",
|
||||||
)
|
)
|
||||||
|
@ -14,7 +14,7 @@ from ..session_factory import new_session
|
|||||||
from ..sessions import sessions_names
|
from ..sessions import sessions_names
|
||||||
|
|
||||||
|
|
||||||
@click.command(
|
@click.command( # type: ignore
|
||||||
name="p",
|
name="p",
|
||||||
help="for a folder as input",
|
help="for a folder as input",
|
||||||
)
|
)
|
||||||
|
@ -19,7 +19,7 @@ from ..sessions import sessions_names
|
|||||||
from ..sessions.base import BaseSession
|
from ..sessions.base import BaseSession
|
||||||
|
|
||||||
|
|
||||||
@click.command(
|
@click.command( # type: ignore
|
||||||
name="s",
|
name="s",
|
||||||
help="for a http server",
|
help="for a http server",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user