@@ -70,7 +70,7 @@ STATIC mp_obj_t analogio_analogin_make_new(const mp_obj_type_t *type,
70
70
return MP_OBJ_FROM_PTR (self );
71
71
}
72
72
73
- //| def deinit(self, ) -> Any :
73
+ //| def deinit(self, ) -> None :
74
74
//| """Turn off the AnalogIn and release the pin for other use."""
75
75
//| ...
76
76
//|
@@ -86,13 +86,13 @@ STATIC void check_for_deinit(analogio_analogin_obj_t *self) {
86
86
raise_deinited_error ();
87
87
}
88
88
}
89
- //| def __enter__(self, ) -> Any :
89
+ //| def __enter__(self, ) -> None :
90
90
//| """No-op used by Context Managers."""
91
91
//| ...
92
92
//|
93
93
// Provided by context manager helper.
94
94
95
- //| def __exit__(self, ) -> Any :
95
+ //| def __exit__(self, ) -> None :
96
96
//| """Automatically deinitializes the hardware when exiting a context. See
97
97
//| :ref:`lifetime-and-contextmanagers` for more info."""
98
98
//| ...
@@ -104,7 +104,7 @@ STATIC mp_obj_t analogio_analogin___exit__(size_t n_args, const mp_obj_t *args)
104
104
}
105
105
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (analogio_analogin___exit___obj , 4 , 4 , analogio_analogin___exit__ );
106
106
107
- //| value: Any = ...
107
+ //| value: int = ...
108
108
//| """The value on the analog pin between 0 and 65535 inclusive (16-bit). (read-only)
109
109
//|
110
110
//| Even if the underlying analog to digital converter (ADC) is lower
@@ -124,7 +124,7 @@ const mp_obj_property_t analogio_analogin_value_obj = {
124
124
(mp_obj_t )& mp_const_none_obj },
125
125
};
126
126
127
- //| reference_voltage: Any = ...
127
+ //| reference_voltage: Optional[float] = ...
128
128
//| """The maximum voltage measurable (also known as the reference voltage) as a
129
129
//| `float` in Volts."""
130
130
//|
0 commit comments