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

Add backticks to default values for formatting. #48

Closed microbit-robert closed 2 years ago

microbit-robert commented 2 years ago

This also makes converting these values to placeholders for translation easier.

microbit-robert commented 2 years ago

@microbit-matt-hillsdon Backticks around integers open for discussion. This is already the case for Neopixel.__init__.

microbit-matt-hillsdon commented 2 years ago

@microbit-matt-hillsdon Backticks around integers open for discussion. This is already the case for Neopixel.__init__.

What do you think? I'm leaning towards it reading more naturally without the backticks. There's little risk of them being changed in the translation process.

microbit-robert commented 2 years ago

@microbit-matt-hillsdon Backticks around integers open for discussion. This is already the case for Neopixel.__init__.

What do you think? I'm leaning towards it reading more naturally without the backticks. There's little risk of them being changed in the translation process.

This does look odd. Happy to remove from Neopixel as well. I'll check for other instances. image