Daniel Gatis 2 年之前
父节点
当前提交
a9c2a39213
共有 5 个文件被更改,包括 7 次插入7 次删除
  1. 3 3
      rembg/cli.py
  2. 1 1
      rembg/commands/b_command.py
  3. 1 1
      rembg/commands/i_command.py
  4. 1 1
      rembg/commands/p_command.py
  5. 1 1
      rembg/commands/s_command.py

+ 3 - 3
rembg/cli.py

@@ -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() # type: ignore
+    @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) # type: ignore
+        _main.add_command(command)  # type: ignore
 
 
-    _main() # type: ignore
+    _main()  # type: ignore

+ 1 - 1
rembg/commands/b_command.py

@@ -13,7 +13,7 @@ from ..session_factory import new_session
 from ..sessions import sessions_names
 from ..sessions import sessions_names
 
 
 
 
[email protected]( # type: ignore
[email protected](  # type: ignore
     name="b",
     name="b",
     help="for a byte stream as input",
     help="for a byte stream as input",
 )
 )

+ 1 - 1
rembg/commands/i_command.py

@@ -9,7 +9,7 @@ from ..session_factory import new_session
 from ..sessions import sessions_names
 from ..sessions import sessions_names
 
 
 
 
[email protected]( # type: ignore
[email protected](  # type: ignore
     name="i",
     name="i",
     help="for a file as input",
     help="for a file as input",
 )
 )

+ 1 - 1
rembg/commands/p_command.py

@@ -14,7 +14,7 @@ from ..session_factory import new_session
 from ..sessions import sessions_names
 from ..sessions import sessions_names
 
 
 
 
[email protected]( # type: ignore
[email protected](  # type: ignore
     name="p",
     name="p",
     help="for a folder as input",
     help="for a folder as input",
 )
 )

+ 1 - 1
rembg/commands/s_command.py

@@ -19,7 +19,7 @@ from ..sessions import sessions_names
 from ..sessions.base import BaseSession
 from ..sessions.base import BaseSession
 
 
 
 
[email protected]( # type: ignore
[email protected](  # type: ignore
     name="s",
     name="s",
     help="for a http server",
     help="for a http server",
 )
 )