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

View File

@@ -5,7 +5,7 @@ DUPLEX_HALF: int
DUPLEX_UNKNOWN: int
version: int
def check_pid_range(__pid: int) -> None: ...
def check_pid_range(pid: int, /) -> None: ...
def disk_partitions(*args, **kwargs) -> Any: ...
def linux_sysinfo(*args, **kwargs) -> Any: ...
def net_if_duplex_speed(*args, **kwargs) -> Any: ...

View File

@@ -20,7 +20,7 @@ TCPS_TIME_WAIT: int
version: int
def boot_time(*args, **kwargs) -> Any: ...
def check_pid_range(__pid: int) -> None: ...
def check_pid_range(pid: int, /) -> None: ...
def cpu_count_cores(*args, **kwargs) -> Any: ...
def cpu_count_logical(*args, **kwargs) -> Any: ...
def cpu_freq(*args, **kwargs) -> Any: ...

View File

@@ -35,7 +35,7 @@ class TimeoutExpired(Exception): ...
def QueryDosDevice(*args, **kwargs): ... # incomplete
def boot_time(*args, **kwargs): ... # incomplete
def check_pid_range(__pid: int) -> None: ...
def check_pid_range(pid: int, /) -> None: ...
def cpu_count_cores(*args, **kwargs): ... # incomplete
def cpu_count_logical(*args, **kwargs): ... # incomplete
def cpu_freq(*args, **kwargs): ... # incomplete