Fix stubtest for tqdm (#10560)

This commit is contained in:
Alex Waygood
2023-08-11 12:52:01 +01:00
committed by GitHub
parent 1ad381d713
commit 7836c47286

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from collections.abc import Callable
from collections.abc import Callable, Mapping
from re import Pattern
from typing import Protocol, TypeVar
from typing_extensions import ParamSpec
@@ -54,5 +54,5 @@ class CallbackIOWrapper(ObjectWrapper):
def disp_len(data: str) -> int: ...
def disp_trim(data: str, length: int) -> str: ...
def envwrap(
prefix: str, case_sensitive: bool = False, literal_eval: bool = False, is_method: bool = False
prefix: str, types: Mapping[str, Callable[[Incomplete], Incomplete]] | None = None, is_method: bool = False
) -> Callable[[Callable[_P, _R]], Callable[_P, _R]]: ...