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

Class Naive

Lib/test/datetimetester.py:5112–5113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5110
5111 # It's also naive if it has tzinfo but tzinfo.utcoffset() is None.
5112 class Naive(tzinfo):
5113 def utcoffset(self, dt): return None
5114 t2 = self.theclass(5, 6, 7, tzinfo=Naive())
5115 self.assertNotEqual(t1, t2)
5116 self.assertEqual(t2, t2)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…