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,
/,
*,
pins: tuple[Pin, Pin, Pin, Pin] | None = None,