microbit-foundation / micropython-microbit-stubs

Type stubs for MicroPython for micro:bit to support the micro:bit Python Editor V3
https://python.microbit.org/
Other
3 stars 2 forks source link

Make non-u variants primary. #44

Closed microbit-matt-hillsdon closed 2 years ago

microbit-matt-hillsdon commented 2 years ago

On microbit.org, in Reference and the MicroPython repo, code samples consistently use random over urandom.

We never use (u)time but it should probably be consistent between the two.

There are also some modules that we don’t yet have docs for as their stubs are from typeshed that also have u and non-u versions (array, collections, errno).

I think we should consistently prefer foo over ufoo.

This doesn't affect what code type checks but does affect tools producing docs from these stubs, including the Python Editor V3 API tab.