typeshed: update stubtest version (#4739)

* typeshed: update stubtest version

Includes changes from https://github.com/python/mypy/pull/9680
I've already fixed all the true positives on typeshed.

* attempt to fix windows' _WarnFunction

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-11-01 03:35:21 -08:00
committed by GitHub
parent 1ff92ddc25
commit 620989bac5
4 changed files with 5 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ from types import TracebackType
from typing import Callable, Optional, Protocol, Tuple, Type
class _WarnFunction(Protocol):
def __call__(self, message: str, category: Type[Warning], source: PipeHandle) -> None: ...
def __call__(self, message: str, category: Type[Warning] = ..., stacklevel: int = ..., source: PipeHandle = ...) -> None: ...
BUFSIZE: int
PIPE: int