Added type hints to rtc
This commit is contained in:
parent
97d405e109
commit
a88004e509
@ -50,7 +50,7 @@ mp_obj_t rtc_get_time_source_time(void) {
|
|||||||
return struct_time_from_tm(&tm);
|
return struct_time_from_tm(&tm);
|
||||||
}
|
}
|
||||||
|
|
||||||
//| def set_time_source(rtc: Any) -> Any:
|
//| def set_time_source(rtc: RTC) -> None:
|
||||||
//| """Sets the RTC time source used by :func:`time.localtime`.
|
//| """Sets the RTC time source used by :func:`time.localtime`.
|
||||||
//| The default is :class:`rtc.RTC`, but it's useful to use this to override the
|
//| The default is :class:`rtc.RTC`, but it's useful to use this to override the
|
||||||
//| time source for testing purposes. For example::
|
//| time source for testing purposes. For example::
|
||||||
|
Loading…
Reference in New Issue
Block a user