mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 12:26:44 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -10,12 +10,11 @@ daylight: int
|
||||
timezone: int
|
||||
tzname: tuple[str, str]
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
if sys.platform == "linux":
|
||||
CLOCK_BOOTTIME: int
|
||||
if sys.platform != "linux" and sys.platform != "win32" and sys.platform != "darwin":
|
||||
CLOCK_PROF: int # FreeBSD, NetBSD, OpenBSD
|
||||
CLOCK_UPTIME: int # FreeBSD, OpenBSD
|
||||
if sys.platform == "linux":
|
||||
CLOCK_BOOTTIME: int
|
||||
if sys.platform != "linux" and sys.platform != "win32" and sys.platform != "darwin":
|
||||
CLOCK_PROF: int # FreeBSD, NetBSD, OpenBSD
|
||||
CLOCK_UPTIME: int # FreeBSD, OpenBSD
|
||||
|
||||
if sys.platform != "win32":
|
||||
CLOCK_MONOTONIC: int
|
||||
@@ -97,17 +96,16 @@ if sys.platform != "win32":
|
||||
def clock_gettime(clk_id: int) -> float: ... # Unix only
|
||||
def clock_settime(clk_id: int, time: float) -> None: ... # Unix only
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
if sys.platform != "win32":
|
||||
def clock_gettime_ns(clock_id: int) -> int: ...
|
||||
def clock_settime_ns(clock_id: int, time: int) -> int: ...
|
||||
if sys.platform != "win32":
|
||||
def clock_gettime_ns(clock_id: int) -> int: ...
|
||||
def clock_settime_ns(clock_id: int, time: int) -> int: ...
|
||||
|
||||
if sys.platform == "linux":
|
||||
def pthread_getcpuclockid(thread_id: int) -> int: ...
|
||||
if sys.platform == "linux":
|
||||
def pthread_getcpuclockid(thread_id: int) -> int: ...
|
||||
|
||||
def monotonic_ns() -> int: ...
|
||||
def perf_counter_ns() -> int: ...
|
||||
def process_time_ns() -> int: ...
|
||||
def time_ns() -> int: ...
|
||||
def thread_time() -> float: ...
|
||||
def thread_time_ns() -> int: ...
|
||||
def monotonic_ns() -> int: ...
|
||||
def perf_counter_ns() -> int: ...
|
||||
def process_time_ns() -> int: ...
|
||||
def time_ns() -> int: ...
|
||||
def thread_time() -> float: ...
|
||||
def thread_time_ns() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user