mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
14 lines
296 B
Python
14 lines
296 B
Python
# Stubs for resource
|
|
|
|
# NOTE: These are incomplete!
|
|
|
|
from typing import Tuple
|
|
|
|
RLIMIT_CORE = 0
|
|
|
|
def getrlimit(resource: int) -> Tuple[int, int]: ...
|
|
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
|
|
|
|
# NOTE: This is an alias of OSError in Python 3.3.
|
|
class error(Exception): ...
|