mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 11:51:28 +08:00
os: pos-only params for various functions (#8284)
This commit is contained in:
@@ -654,7 +654,7 @@ class terminal_size(structseq[int], tuple[int, int]):
|
||||
@property
|
||||
def lines(self) -> int: ...
|
||||
|
||||
def get_terminal_size(fd: int = ...) -> terminal_size: ...
|
||||
def get_terminal_size(__fd: int = ...) -> terminal_size: ...
|
||||
def get_inheritable(__fd: int) -> bool: ...
|
||||
def set_inheritable(__fd: int, __inheritable: bool) -> None: ...
|
||||
|
||||
@@ -823,7 +823,7 @@ if sys.platform != "win32":
|
||||
def killpg(__pgid: int, __signal: int) -> None: ...
|
||||
def nice(__increment: int) -> int: ...
|
||||
if sys.platform != "darwin":
|
||||
def plock(op: int) -> None: ... # ???op is int?
|
||||
def plock(__op: int) -> None: ... # ???op is int?
|
||||
|
||||
class _wrap_close(_TextIOWrapper):
|
||||
def __init__(self, stream: _TextIOWrapper, proc: Popen[str]) -> None: ...
|
||||
@@ -885,7 +885,7 @@ else:
|
||||
@property
|
||||
def si_code(self) -> int: ...
|
||||
|
||||
def waitid(idtype: int, ident: int, options: int) -> waitid_result: ...
|
||||
def waitid(__idtype: int, __ident: int, __options: int) -> waitid_result: ...
|
||||
|
||||
def wait3(options: int) -> tuple[int, int, Any]: ...
|
||||
def wait4(pid: int, options: int) -> tuple[int, int, Any]: ...
|
||||
@@ -941,13 +941,13 @@ if sys.platform != "win32":
|
||||
def sched_get_priority_max(policy: int) -> int: ... # some flavors of Unix
|
||||
def sched_yield() -> None: ... # some flavors of Unix
|
||||
if sys.platform != "darwin":
|
||||
def sched_setscheduler(pid: int, policy: int, param: sched_param) -> None: ... # some flavors of Unix
|
||||
def sched_getscheduler(pid: int) -> int: ... # some flavors of Unix
|
||||
def sched_rr_get_interval(pid: int) -> float: ... # some flavors of Unix
|
||||
def sched_setparam(pid: int, param: sched_param) -> None: ... # some flavors of Unix
|
||||
def sched_getparam(pid: int) -> sched_param: ... # some flavors of Unix
|
||||
def sched_setaffinity(pid: int, mask: Iterable[int]) -> None: ... # some flavors of Unix
|
||||
def sched_getaffinity(pid: int) -> set[int]: ... # some flavors of Unix
|
||||
def sched_setscheduler(__pid: int, __policy: int, __param: sched_param) -> None: ... # some flavors of Unix
|
||||
def sched_getscheduler(__pid: int) -> int: ... # some flavors of Unix
|
||||
def sched_rr_get_interval(__pid: int) -> float: ... # some flavors of Unix
|
||||
def sched_setparam(__pid: int, __param: sched_param) -> None: ... # some flavors of Unix
|
||||
def sched_getparam(__pid: int) -> sched_param: ... # some flavors of Unix
|
||||
def sched_setaffinity(__pid: int, __mask: Iterable[int]) -> None: ... # some flavors of Unix
|
||||
def sched_getaffinity(__pid: int) -> set[int]: ... # some flavors of Unix
|
||||
|
||||
def cpu_count() -> int | None: ...
|
||||
|
||||
|
||||
@@ -5,16 +5,8 @@ _?curses.color_pair
|
||||
(os|posix).SPLICE_F_MORE
|
||||
(os|posix).SPLICE_F_MOVE
|
||||
(os|posix).SPLICE_F_NONBLOCK
|
||||
(os|posix).sched_getaffinity
|
||||
(os|posix).sched_getparam
|
||||
(os|posix).sched_getscheduler
|
||||
(os|posix).sched_rr_get_interval
|
||||
(os|posix).sched_setaffinity
|
||||
(os|posix).sched_setparam
|
||||
(os|posix).sched_setscheduler
|
||||
(os|posix).setresgid
|
||||
(os|posix).setresuid
|
||||
(os|posix).waitid
|
||||
(os|posix).sendfile
|
||||
(os|posix).eventfd
|
||||
(os|posix).eventfd_read
|
||||
|
||||
@@ -7,16 +7,8 @@ mmap.MAP_STACK
|
||||
(os|posix).SPLICE_F_MORE
|
||||
(os|posix).SPLICE_F_MOVE
|
||||
(os|posix).SPLICE_F_NONBLOCK
|
||||
(os|posix).sched_getaffinity
|
||||
(os|posix).sched_getparam
|
||||
(os|posix).sched_getscheduler
|
||||
(os|posix).sched_rr_get_interval
|
||||
(os|posix).sched_setaffinity
|
||||
(os|posix).sched_setparam
|
||||
(os|posix).sched_setscheduler
|
||||
(os|posix).setresgid
|
||||
(os|posix).setresuid
|
||||
(os|posix).waitid
|
||||
(os|posix).sendfile
|
||||
(os|posix).eventfd
|
||||
(os|posix).eventfd_read
|
||||
|
||||
Reference in New Issue
Block a user