micropython-stubs icon indicating copy to clipboard operation
micropython-stubs copied to clipboard

add MicroPython protocols to stubs

Open Josverl opened this issue 8 months ago • 1 comments

Based on the finding of io.Stream class/Protocol defined by Andy ion https://github.com/Josverl/micropython-stubs/issues/781 that I think related to : https://github.com/micropython/micropython/blob/2c80d369988a84d85efe0483f9cf469ff27b70f9/py/stream.h#L69-L92

the naming convention in MicroPython's C source appears to be :

  • struct _mp_stream_p_t
  • struct _<protocol>_p_t

Protocols

Stubs: define in _mpt_shed , expose in the relevant modules - assuming they are consistent across boards an ports

Documentation: these are sparsely documented , may need a separate page for it

Josverl avatar Mar 02 '25 12:03 Josverl