Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu
2024-03-10 06:11:43 -07:00
committed by GitHub
parent f94bbfbcc4
commit 88fa182253
97 changed files with 625 additions and 632 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ class _Call(tuple[Any, ...]):
from_kall: bool = True,
) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, __other: object) -> bool: ...
def __ne__(self, other: object, /) -> bool: ...
def __call__(self, *args: Any, **kwargs: Any) -> _Call: ...
def __getattr__(self, attr: str) -> Any: ...
@property
@@ -204,7 +204,7 @@ class _patch(Generic[_T]):
is_local: bool
def __enter__(self) -> _T: ...
def __exit__(
self, __exc_type: type[BaseException] | None, __exc_value: BaseException | None, __traceback: TracebackType | None
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None, /
) -> None: ...
def start(self) -> _T: ...
def stop(self) -> None: ...