MCPcopy Index your code
hub / github.com/python/cpython / _check_tzinfo_arg

Function _check_tzinfo_arg

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

Source from the content-addressed store, hash-verified

595 return hour, minute, second, microsecond, fold
596
597def _check_tzinfo_arg(tz):
598 if tz is not None and not isinstance(tz, tzinfo):
599 raise TypeError(
600 "tzinfo argument must be None or of a tzinfo subclass, "
601 f"not {type(tz).__name__!r}"
602 )
603
604def _divide_and_round(a, b):
605 """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

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…