Closed mishal closed 1 year ago
Thanks for the report,
I'll update it to `Union[int,str,bytes,Tuple] That way it will not be wrong, even if it doesn't get the details of a specific port/board/build
@mishal ,
just published an update to the stubs for versions 1.19.1 and 1.20.0
@all-contributors please add @mishal for stubs and bugs
@Josverl
I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.
I've put up a pull request to add @mishal! :tada:
The return value of
micropython.const
forrp2
port (I did not not check other ports) is wrong:Micropython allows to declare also string, tuple,... if built with enabled flags
MICROPY_COMP_CONST
andMICROPY_COMP_CONST_TUPLE
, enabled by default inrp2
build (byMICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES
flag)See the test in micropython source:
https://github.com/micropython/micropython/blob/master/tests/micropython/const_alltypes.py