Presumably because we don’t have MICROPY_PY_SYS_STDFILES set.
We should remove the second argument from the stubs. It would have originated from the upstream MicroPython docs as there are no micro:bit docs for the sys module.
Ideally MicroPython would error when passed an unsupported parameter, I'll see if others think this is worth reporting.
https://github.com/micropython/micropython/blob/1e2f0d2809c5431c9baf1d6f447162013f58baac/py/modsys.c#L123
Presumably because we don’t have MICROPY_PY_SYS_STDFILES set.
We should remove the second argument from the stubs. It would have originated from the upstream MicroPython docs as there are no micro:bit docs for the sys module.
Ideally MicroPython would error when passed an unsupported parameter, I'll see if others think this is worth reporting.