From 3ab3711f427231fe31e856e238bcbc58172ef983 Mon Sep 17 00:00:00 2001 From: Liam Damewood Date: Wed, 24 Aug 2022 03:30:29 -0700 Subject: [PATCH] tqdm: All `leave` arguments can be `None` (#8603) All `leave` arguments are optional in tqdm. --- stubs/tqdm/tqdm/asyncio.pyi | 12 ++++++------ stubs/tqdm/tqdm/contrib/discord.pyi | 4 ++-- stubs/tqdm/tqdm/contrib/slack.pyi | 4 ++-- stubs/tqdm/tqdm/contrib/telegram.pyi | 4 ++-- stubs/tqdm/tqdm/gui.pyi | 4 ++-- stubs/tqdm/tqdm/notebook.pyi | 4 ++-- stubs/tqdm/tqdm/rich.pyi | 4 ++-- stubs/tqdm/tqdm/std.pyi | 10 +++++----- stubs/tqdm/tqdm/tk.pyi | 4 ++-- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/stubs/tqdm/tqdm/asyncio.pyi b/stubs/tqdm/tqdm/asyncio.pyi index c8997b2d2..bea159a69 100644 --- a/stubs/tqdm/tqdm/asyncio.pyi +++ b/stubs/tqdm/tqdm/asyncio.pyi @@ -25,7 +25,7 @@ class tqdm_asyncio(Generic[_T], std_tqdm[_T]): timeout: float | None = ..., total: int | None = ..., desc: str | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -57,7 +57,7 @@ class tqdm_asyncio(Generic[_T], std_tqdm[_T]): total: int | None = ..., iterable: Iterable[_T] = ..., desc: str | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -86,7 +86,7 @@ class tqdm_asyncio(Generic[_T], std_tqdm[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -117,7 +117,7 @@ class tqdm_asyncio(Generic[_T], std_tqdm[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -151,7 +151,7 @@ def tarange( *, desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -180,7 +180,7 @@ def tarange( *, desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/contrib/discord.pyi b/stubs/tqdm/tqdm/contrib/discord.pyi index 80b448443..05133f03c 100644 --- a/stubs/tqdm/tqdm/contrib/discord.pyi +++ b/stubs/tqdm/tqdm/contrib/discord.pyi @@ -23,7 +23,7 @@ class tqdm_discord(Generic[_T], tqdm_auto[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -54,7 +54,7 @@ class tqdm_discord(Generic[_T], tqdm_auto[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/contrib/slack.pyi b/stubs/tqdm/tqdm/contrib/slack.pyi index e1900c5d7..b08e68ba7 100644 --- a/stubs/tqdm/tqdm/contrib/slack.pyi +++ b/stubs/tqdm/tqdm/contrib/slack.pyi @@ -24,7 +24,7 @@ class tqdm_slack(Generic[_T], tqdm_auto[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -57,7 +57,7 @@ class tqdm_slack(Generic[_T], tqdm_auto[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/contrib/telegram.pyi b/stubs/tqdm/tqdm/contrib/telegram.pyi index 3af87142f..4f78e246f 100644 --- a/stubs/tqdm/tqdm/contrib/telegram.pyi +++ b/stubs/tqdm/tqdm/contrib/telegram.pyi @@ -29,7 +29,7 @@ class tqdm_telegram(Generic[_T], tqdm_auto[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -62,7 +62,7 @@ class tqdm_telegram(Generic[_T], tqdm_auto[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/gui.pyi b/stubs/tqdm/tqdm/gui.pyi index 3369bd021..8d3413365 100644 --- a/stubs/tqdm/tqdm/gui.pyi +++ b/stubs/tqdm/tqdm/gui.pyi @@ -29,7 +29,7 @@ class tqdm_gui(Generic[_T], std_tqdm[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -60,7 +60,7 @@ class tqdm_gui(Generic[_T], std_tqdm[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/notebook.pyi b/stubs/tqdm/tqdm/notebook.pyi index 7ecb32b2b..dbd7855b8 100644 --- a/stubs/tqdm/tqdm/notebook.pyi +++ b/stubs/tqdm/tqdm/notebook.pyi @@ -35,7 +35,7 @@ class tqdm_notebook(Generic[_T], std_tqdm[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -66,7 +66,7 @@ class tqdm_notebook(Generic[_T], std_tqdm[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/rich.pyi b/stubs/tqdm/tqdm/rich.pyi index b0e1abe43..a10a5c0b8 100644 --- a/stubs/tqdm/tqdm/rich.pyi +++ b/stubs/tqdm/tqdm/rich.pyi @@ -37,7 +37,7 @@ class tqdm_rich(Generic[_T], std_tqdm[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -68,7 +68,7 @@ class tqdm_rich(Generic[_T], std_tqdm[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index b4b07b479..59f2ea13a 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -63,7 +63,7 @@ class tqdm(Generic[_T], Iterable[_T], Comparable): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -94,7 +94,7 @@ class tqdm(Generic[_T], Iterable[_T], Comparable): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -136,7 +136,7 @@ class tqdm(Generic[_T], Iterable[_T], Comparable): *, desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -231,7 +231,7 @@ def trange( *, desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -260,7 +260,7 @@ def trange( *, desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., diff --git a/stubs/tqdm/tqdm/tk.pyi b/stubs/tqdm/tqdm/tk.pyi index 5a10272f0..7ae5a2d13 100644 --- a/stubs/tqdm/tqdm/tk.pyi +++ b/stubs/tqdm/tqdm/tk.pyi @@ -15,7 +15,7 @@ class tqdm_tk(Generic[_T], std_tqdm[_T]): iterable: Iterable[_T], desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., @@ -49,7 +49,7 @@ class tqdm_tk(Generic[_T], std_tqdm[_T]): iterable: None = ..., desc: str | None = ..., total: float | None = ..., - leave: bool = ..., + leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ...,