mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import sys
|
||||
from typing import NamedTuple, Tuple
|
||||
from typing import NamedTuple
|
||||
|
||||
if sys.platform != "win32":
|
||||
class error(Exception): ...
|
||||
RLIM_INFINITY: int
|
||||
def getrlimit(resource: int) -> Tuple[int, int]: ...
|
||||
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
|
||||
def getrlimit(resource: int) -> tuple[int, int]: ...
|
||||
def setrlimit(resource: int, limits: tuple[int, int]) -> None: ...
|
||||
RLIMIT_CORE: int
|
||||
RLIMIT_CPU: int
|
||||
RLIMIT_FSIZE: int
|
||||
|
||||
Reference in New Issue
Block a user