File: resource.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (33 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from typing import Tuple, NamedTuple

class error(Exception): ...

RLIM_INFINITY = ...  # type: 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

_RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),
                                 ('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),
                                 ('ru_minflt', int), ('ru_majflt', int), ('ru_nswap', int),
                                 ('ru_inblock', int), ('ru_oublock', int), ('ru_msgsnd', int),
                                 ('ru_msgrcv', int), ('ru_nsignals', int), ('ru_nvcsw', int),
                                 ('ru_nivcsw', int)])
def getrusage(who: int) -> _RUsage: ...
def getpagesize() -> int: ...

RUSAGE_SELF = ...  # type: int
RUSAGE_CHILDREN = ...  # type: int
RUSAGE_BOTH = ...  # type: int