Skip to content

Commit 51fd286

Browse files
committed
Added type hints to board
1 parent 26f1fd0 commit 51fd286

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

shared-bindings/board/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//| .. warning:: The board module varies by board. The APIs documented here may or may not be
3838
//| available on a specific board."""
3939

40-
//| def I2C() -> Any:
40+
//| def I2C() -> busio.I2C:
4141
//| """Returns the `busio.I2C` object for the board designated SDA and SCL pins. It is a singleton."""
4242
//| ...
4343
//|
@@ -61,7 +61,7 @@ mp_obj_t board_i2c(void) {
6161
MP_DEFINE_CONST_FUN_OBJ_0(board_i2c_obj, board_i2c);
6262

6363

64-
//| def SPI() -> Any:
64+
//| def SPI() -> busio.SPI:
6565
//| """Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
6666
//| singleton."""
6767
//| ...
@@ -85,7 +85,7 @@ mp_obj_t board_spi(void) {
8585
#endif
8686
MP_DEFINE_CONST_FUN_OBJ_0(board_spi_obj, board_spi);
8787

88-
//| def UART() -> Any:
88+
//| def UART() -> busio.UART:
8989
//| """Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
9090
//|
9191
//| The object created uses the default parameter values for `busio.UART`. If you need to set

0 commit comments

Comments
 (0)