pyMeterBus icon indicating copy to clipboard operation
pyMeterBus copied to clipboard

add google doc strings and type hints to code

Open WolfgangFahl opened this issue 9 months ago • 0 comments

ChatGPT4 will happily assist in this e.g.

def serial_send(ser: serial.Serial, data: bytes = None, read_echo: bool = False) -> None:
    """
    Sends data through the serial interface and optionally reads echo.

    :param ser: Serial port instance.
    :param data: Data to be sent as bytes.
    :param read_echo: Flag to determine if the echo should be read.
    """

WolfgangFahl avatar May 24 '24 07:05 WolfgangFahl