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

Class _ttinfo

Lib/zoneinfo/_zoneinfo.py:400–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398
399
400class _ttinfo:
401 __slots__ = ["utcoff", "dstoff", "tzname"]
402
403 def __init__(self, utcoff, dstoff, tzname):
404 self.utcoff = utcoff
405 self.dstoff = dstoff
406 self.tzname = tzname
407
408 def __eq__(self, other):
409 return (
410 self.utcoff == other.utcoff
411 and self.dstoff == other.dstoff
412 and self.tzname == other.tzname
413 )
414
415 def __repr__(self): # pragma: nocover
416 return (
417 f"{self.__class__.__name__}"
418 + f"({self.utcoff}, {self.dstoff}, {self.tzname})"
419 )
420
421
422_NO_TTINFO = _ttinfo(None, None, None)

Callers 4

_load_fileMethod · 0.85
_zoneinfo.pyFile · 0.85
__init__Method · 0.85
_parse_tz_strFunction · 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…