<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_hoy(cls, hoy, leap_year=False):
 """Create Ladybug Datetime from an hour of the year. Args: hoy: A float value 0 <= and < 8760 """

        return cls.from_moy(round(hoy * 60), leap_year)