mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
PEP 553 and PEP 564 (#1846)
* Add `breakpoint` to builtins (PEP 553) * Add new `time` functions (PEP 564)
This commit is contained in:
committed by
Jelle Zijlstra
parent
33039f913e
commit
3e00a8f8e1
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user