5454//| This object is the sole instance of `microcontroller.Processor`."""
5555//|
5656
57- //| def delay_us(delay: Any ) -> Any :
57+ //| def delay_us(delay: int ) -> None :
5858//| """Dedicated delay method used for very short delays. **Do not** do long delays
5959//| because this stops all other functions from completing. Think of this as an empty
6060//| ``while`` loop that runs for the specified ``(delay)`` time. If you have other
@@ -72,7 +72,7 @@ STATIC mp_obj_t mcu_delay_us(mp_obj_t delay_obj) {
7272}
7373STATIC MP_DEFINE_CONST_FUN_OBJ_1 (mcu_delay_us_obj , mcu_delay_us );
7474
75- //| def disable_interrupts() -> Any :
75+ //| def disable_interrupts() -> None :
7676//| """Disable all interrupts. Be very careful, this can stall everything."""
7777//| ...
7878//|
@@ -82,7 +82,7 @@ STATIC mp_obj_t mcu_disable_interrupts(void) {
8282}
8383STATIC MP_DEFINE_CONST_FUN_OBJ_0 (mcu_disable_interrupts_obj , mcu_disable_interrupts );
8484
85- //| def enable_interrupts() -> Any :
85+ //| def enable_interrupts() -> None :
8686//| """Enable the interrupts that were enabled at the last disable."""
8787//| ...
8888//|
@@ -92,7 +92,7 @@ STATIC mp_obj_t mcu_enable_interrupts(void) {
9292}
9393STATIC MP_DEFINE_CONST_FUN_OBJ_0 (mcu_enable_interrupts_obj , mcu_enable_interrupts );
9494
95- //| def on_next_reset(run_mode: microcontroller.RunMode) -> Any :
95+ //| def on_next_reset(run_mode: microcontroller.RunMode) -> None :
9696//| """Configure the run mode used the next time the microcontroller is reset but
9797//| not powered down.
9898//|
@@ -117,7 +117,7 @@ STATIC mp_obj_t mcu_on_next_reset(mp_obj_t run_mode_obj) {
117117}
118118STATIC MP_DEFINE_CONST_FUN_OBJ_1 (mcu_on_next_reset_obj , mcu_on_next_reset );
119119
120- //| def reset() -> Any :
120+ //| def reset() -> None :
121121//| """Reset the microcontroller. After reset, the microcontroller will enter the
122122//| run mode last set by `on_next_reset`.
123123//|
0 commit comments