MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_tzinfo_arg

Function _check_tzinfo_arg

Lib/_pydatetime.py:588–593  ·  view source on GitHub ↗
(tz)

Source from the content-addressed store, hash-verified

586 return hour, minute, second, microsecond, fold
587
588def _check_tzinfo_arg(tz):
589 if tz is not None and not isinstance(tz, tzinfo):
590 raise TypeError(
591 "tzinfo argument must be None or of a tzinfo subclass, "
592 f"not {type(tz).__name__!r}"
593 )
594
595def _divide_and_round(a, b):
596 """divide a by b and round result to the nearest integer

Callers 3

__new__Method · 0.85
__new__Method · 0.85
fromtimestampMethod · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected