click_spinner: make arguments optional (#9220)

Matches the code, where these arguments are not required: https://github.com/click-contrib/click-spinner/blob/master/click_spinner/__init__.py
This commit is contained in:
Harshal Sheth
2022-11-17 03:47:37 -05:00
committed by GitHub
parent 8086ae7f44
commit c7431181b3
2 changed files with 2 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
click_spinner.Spinner.__init__
click_spinner.spinner

View File

@@ -20,7 +20,7 @@ class Spinner:
stream: _Stream
stop_running: threading.Event | None
spin_thread: threading.Thread | None
def __init__(self, beep: bool, disable: bool, force: bool, stream: _Stream) -> None: ...
def __init__(self, beep: bool = ..., disable: bool = ..., force: bool = ..., stream: _Stream = ...) -> None: ...
def start(self) -> None: ...
def stop(self) -> None: ...
def init_spin(self) -> None: ...
@@ -29,4 +29,4 @@ class Spinner:
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> Literal[False]: ...
def spinner(beep: bool, disable: bool, force: bool, stream: _Stream) -> Spinner: ...
def spinner(beep: bool = ..., disable: bool = ..., force: bool = ..., stream: _Stream = ...) -> Spinner: ...