mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -2,22 +2,22 @@ from typing import Tuple, NamedTuple
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
RLIM_INFINITY = ... # type: int
|
||||
RLIM_INFINITY: int
|
||||
def getrlimit(resource: int) -> Tuple[int, int]: ...
|
||||
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
|
||||
|
||||
RLIMIT_CORE = ... # type: int
|
||||
RLIMIT_CPU = ... # type: int
|
||||
RLIMIT_FSIZE = ... # type: int
|
||||
RLIMIT_DATA = ... # type: int
|
||||
RLIMIT_STACK = ... # type: int
|
||||
RLIMIT_RSS = ... # type: int
|
||||
RLIMIT_NPROC = ... # type: int
|
||||
RLIMIT_NOFILE = ... # type: int
|
||||
RLIMIT_OFILE = ... # type: int
|
||||
RLIMIT_MEMLOCK = ... # type: int
|
||||
RLIMIT_VMEM = ... # type: int
|
||||
RLIMIT_AS = ... # type: int
|
||||
RLIMIT_CORE: int
|
||||
RLIMIT_CPU: int
|
||||
RLIMIT_FSIZE: int
|
||||
RLIMIT_DATA: int
|
||||
RLIMIT_STACK: int
|
||||
RLIMIT_RSS: int
|
||||
RLIMIT_NPROC: int
|
||||
RLIMIT_NOFILE: int
|
||||
RLIMIT_OFILE: int
|
||||
RLIMIT_MEMLOCK: int
|
||||
RLIMIT_VMEM: int
|
||||
RLIMIT_AS: int
|
||||
|
||||
_RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),
|
||||
('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),
|
||||
@@ -28,6 +28,6 @@ _RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_
|
||||
def getrusage(who: int) -> _RUsage: ...
|
||||
def getpagesize() -> int: ...
|
||||
|
||||
RUSAGE_SELF = ... # type: int
|
||||
RUSAGE_CHILDREN = ... # type: int
|
||||
RUSAGE_BOTH = ... # type: int
|
||||
RUSAGE_SELF: int
|
||||
RUSAGE_CHILDREN: int
|
||||
RUSAGE_BOTH: int
|
||||
|
||||
Reference in New Issue
Block a user