def get_cool_off() -> Optional[timedelta]:
cool_off = settings.AXES_COOLOFF_TIME<EOL>if isinstance(cool_off, int):<EOL><INDENT>return timedelta(hours=cool_off)<EOL><DEDENT>return cool_off<EOL>
Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.

The return value is either None or timedelta.

Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,
and this function offers a unified _timedelta or None_ representation of that configuration
for use with the Axes internal implementations.

:exception TypeError: if settings.AXES_COOLOFF_TIME is of wrong type.