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

Method __init__

Lib/test/datetimetester.py:134–141  ·  view source on GitHub ↗
(self, offset, name, dstoffset=42)

Source from the content-addressed store, hash-verified

132class FixedOffset(tzinfo):
133
134 def __init__(self, offset, name, dstoffset=42):
135 if isinstance(offset, int):
136 offset = timedelta(minutes=offset)
137 if isinstance(dstoffset, int):
138 dstoffset = timedelta(minutes=dstoffset)
139 self.__offset = offset
140 self.__name = name
141 self.__dstoffset = dstoffset
142 def __repr__(self):
143 return self.__name.lower()
144 def utcoffset(self, dt):

Callers

nothing calls this directly

Calls 2

timedeltaClass · 0.90
isinstanceFunction · 0.85

Tested by

no test coverage detected