PEP 553 and PEP 564 (#1846)

* Add `breakpoint` to builtins (PEP 553)

* Add new `time` functions (PEP 564)
This commit is contained in:
Semyon Proshev
2018-02-01 03:51:25 +03:00
committed by Jelle Zijlstra
parent 33039f913e
commit 3e00a8f8e1
2 changed files with 10 additions and 0 deletions

View File

@@ -789,6 +789,8 @@ def all(i: Iterable[object]) -> bool: ...
def any(i: Iterable[object]) -> bool: ...
def ascii(o: object) -> str: ...
def bin(number: int) -> str: ...
if sys.version_info >= (3, 7):
def breakpoint(*args: Any, **kws: Any) -> None: ...
def callable(o: object) -> bool: ...
def chr(code: int) -> str: ...
def compile(source: Any, filename: Union[str, bytes], mode: str, flags: int = ..., dont_inherit: int = ...) -> CodeType: ...

View File

@@ -92,3 +92,11 @@ if sys.version_info >= (3, 3):
def clock_getres(clk_id: int) -> float: ... # Unix only
def clock_gettime(clk_id: int) -> float: ... # Unix only
def clock_settime(clk_id: int, time: float) -> None: ... # Unix only
if sys.version_info >= (3, 7):
def clock_gettime_ns(clock_id: int) -> int: ...
def clock_settime_ns(clock_id: int, time: int) -> int: ...
def monotonic_ns() -> int: ...
def perf_counter_ns() -> int: ...
def process_time_ns() -> int: ...
def time_ns() -> int: ...