mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-18 22:08:03 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -10,6 +10,6 @@ class DummyTqdmFile(ObjectWrapper):
|
||||
def write(self, x, nolock: bool = False) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
|
||||
def tenumerate(iterable, start: int = 0, total: Incomplete | None = None, tqdm_class: type[Incomplete] = ..., **tqdm_kwargs): ...
|
||||
def tenumerate(iterable, start: int = 0, total=None, tqdm_class: type[Incomplete] = ..., **tqdm_kwargs): ...
|
||||
def tzip(iter1, *iter2plus, **tqdm_kwargs) -> Generator[Incomplete, None, None]: ...
|
||||
def tmap(function: Callable[..., Incomplete], *sequences, **tqdm_kwargs) -> Generator[Incomplete, None, None]: ...
|
||||
|
||||
@@ -29,7 +29,7 @@ class _Callback:
|
||||
|
||||
class TqdmCallback(_Callback):
|
||||
@staticmethod
|
||||
def bar2callback(bar, pop: Incomplete | None = None, delta=...): ...
|
||||
def bar2callback(bar, pop=None, delta=...): ...
|
||||
tqdm_class: Incomplete
|
||||
epoch_bar: Incomplete
|
||||
on_epoch_end: Incomplete
|
||||
@@ -37,15 +37,7 @@ class TqdmCallback(_Callback):
|
||||
verbose: Incomplete
|
||||
batch_bar: Incomplete
|
||||
on_batch_end: Incomplete
|
||||
def __init__(
|
||||
self,
|
||||
epochs: Incomplete | None = None,
|
||||
data_size: Incomplete | None = None,
|
||||
batch_size: Incomplete | None = None,
|
||||
verbose: int = 1,
|
||||
tqdm_class=...,
|
||||
**tqdm_kwargs,
|
||||
) -> None: ...
|
||||
def __init__(self, epochs=None, data_size=None, batch_size=None, verbose: int = 1, tqdm_class=..., **tqdm_kwargs) -> None: ...
|
||||
def on_train_begin(self, *_, **__) -> None: ...
|
||||
def on_epoch_begin(self, epoch, *_, **__) -> None: ...
|
||||
def on_train_end(self, *_, **__) -> None: ...
|
||||
|
||||
@@ -23,7 +23,7 @@ class TqdmTypeError(TypeError): ...
|
||||
class TqdmKeyError(KeyError): ...
|
||||
|
||||
class TqdmWarning(Warning):
|
||||
def __init__(self, msg, fp_write: Incomplete | None = None, *a, **k) -> None: ...
|
||||
def __init__(self, msg, fp_write=None, *a, **k) -> None: ...
|
||||
|
||||
class TqdmExperimentalWarning(TqdmWarning, FutureWarning): ...
|
||||
class TqdmDeprecationWarning(TqdmWarning, DeprecationWarning): ...
|
||||
|
||||
@@ -85,7 +85,7 @@ class tqdm_tk(std_tqdm[_T]):
|
||||
desc: Incomplete
|
||||
def set_description_str(self, desc: str | None = None, refresh: bool | None = True) -> None: ...
|
||||
def cancel(self) -> None: ...
|
||||
def reset(self, total: Incomplete | None = None) -> None: ...
|
||||
def reset(self, total=None) -> None: ...
|
||||
|
||||
def ttkrange(*args, **kwargs) -> tqdm_tk[int]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user