Skip to content

Commit 866b546

Browse files
authored
[tqdm] Fix kwargs that were not marked optional (#16117)
1 parent 1476daf commit 866b546

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stubs/tqdm/tqdm/contrib/concurrent.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ class _TqdmCommonKwargs(TypedDict, total=False):
5252
# TODO: refactor this, when `TypedDict` will support conditional fields
5353
if sys.version_info >= (3, 14):
5454
@type_check_only
55-
class _TqdmKwargs(_TqdmCommonKwargs):
55+
class _TqdmKwargs(_TqdmCommonKwargs, total=False):
5656
buffersize: int | None
5757

5858
else:
5959
_TqdmKwargs = _TqdmCommonKwargs
6060

6161
@type_check_only
62-
class _TqdmProcessKwargs(_TqdmKwargs):
62+
class _TqdmProcessKwargs(_TqdmKwargs, total=False):
6363
mp_context: BaseContext | None
6464
max_tasks_per_child: int | None
6565

6666
@type_check_only
67-
class _TqdmThreadKwargs(_TqdmKwargs):
67+
class _TqdmThreadKwargs(_TqdmKwargs, total=False):
6868
thread_name_prefix: str | None
6969
# Not techically for threading, but just a signature difference:
7070
lock_name: str

0 commit comments

Comments
 (0)