in typehints/micropython/machine.pyi [0:0]
def __init__(
self,
id: int | str,
baudrate: int = 9600,
bits: int = 8,
parity: int | None = None,
stop: int = 1,
/,
*,
tx: Pin | None = None,
rx: Pin | None = None,
txbuf: int | None = None,
rxbuf: int | None = None,
timeout: int | None = None,
timeout_char: int | None = None,
invert: int | None = None,