Код: Выделить всё
@abstractmethod
def parse_sun_times(self, times_as_strings: Dict[str, str]) -> SunTimes:
"""
Parses a dictionary of time strings into a SunTimes object.
Args:
times_as_strings (Dict[str, str]): A dictionary containing time strings as values and
sun phases as keys
Returns:
SunTimes: An object representing parsed sunrise, sunset, and twilight times.
"""
pass
Подробнее здесь: https://stackoverflow.com/questions/792 ... act-method
Мобильная версия