Added type hints to rtc

This commit is contained in:
dherrada 2020-07-03 15:27:11 -04:00
parent 97d405e109
commit a88004e509
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ mp_obj_t rtc_get_time_source_time(void) {
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`.
//| The default is :class:`rtc.RTC`, but it's useful to use this to override the
//| time source for testing purposes. For example::