mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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:
@@ -1,2 +0,0 @@
|
||||
click_spinner.Spinner.__init__
|
||||
click_spinner.spinner
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user