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

Function _check_tzname

Lib/_pydatetime.py:544–547  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

542
543# Just raise TypeError if the arg isn't None or a string.
544def _check_tzname(name):
545 if name is not None and not isinstance(name, str):
546 raise TypeError("tzinfo.tzname() must return None or string, "
547 f"not {type(name).__name__!r}")
548
549# name is the offset-producing method, "utcoffset" or "dst".
550# offset is what it returned.

Callers 2

tznameMethod · 0.85
tznameMethod · 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…