Files
pybricks-api/pybricks/tools.pyi
T
David Lechner dca8518575 pybricks: add type hints for v2
This adds PEP 561 style type hints for Pybricks v2 (just EV3).
2020-12-28 16:21:56 -06:00

24 lines
527 B
Python

# SPDX-License-Identifier: MIT
# Copyright (c) 2020 The Pybricks Authors
from typing import Any
def wait(time: int) -> None: ...
class StopWatch:
def time(self) -> int: ...
def pause(self) -> None: ...
def resume(self) -> None: ...
def reset(self) -> None: ...
class DataLog:
def __init__(
self,
*headers: str,
name: str = "log",
timestamp: bool = True,
extension: str = "csv",
append: bool = False
): ...
def log(self, *values: Any) -> None: ...