Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -1,4 +1,3 @@
import sys
import threading
from collections.abc import Callable
from contextlib import AbstractContextManager
@@ -20,11 +19,7 @@ class BoundedSemaphore(Semaphore):
class Condition(AbstractContextManager[bool]):
def __init__(self, lock: _LockLike | None = ..., *, ctx: BaseContext) -> None: ...
if sys.version_info >= (3, 7):
def notify(self, n: int = ...) -> None: ...
else:
def notify(self) -> None: ...
def notify(self, n: int = ...) -> None: ...
def notify_all(self) -> None: ...
def wait(self, timeout: float | None = ...) -> bool: ...
def wait_for(self, predicate: Callable[[], bool], timeout: float | None = ...) -> bool: ...