Skip to content

Commit 39278fa

Browse files
committed
"Reformatted per new black version"
1 parent cdc5fd7 commit 39278fa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

adafruit_datetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _format_offset(off: "timedelta") -> str:
144144

145145
# Utility functions - timezone
146146
def _check_tzname(name: Optional[str]) -> None:
147-
""""Just raise TypeError if the arg isn't None or a string."""
147+
""" "Just raise TypeError if the arg isn't None or a string."""
148148
if name is not None and not isinstance(name, str):
149149
raise TypeError(
150150
"tzinfo.tzname() must return None or string, " "not '%s'" % type(name)
@@ -453,7 +453,7 @@ def total_seconds(self) -> float:
453453
# floats is considerably smaller than on standard Python.
454454
seconds = self._days * 86400 + self._seconds
455455
if self._microseconds != 0 and abs(seconds) < (1 << 21):
456-
seconds += self._microseconds / 10 ** 6
456+
seconds += self._microseconds / 10**6
457457
return seconds
458458

459459
def __repr__(self) -> str:

tests/test_datetime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def test_microsecond_rounding(self):
584584
self.assertEqual(t, minus_one)
585585
t = fts(-1e-7)
586586
self.assertEqual(t, zero)
587-
t = fts(-1 / 2 ** 7)
587+
t = fts(-1 / 2**7)
588588
self.assertEqual(t.second, 59)
589589
self.assertEqual(t.microsecond, 992188)
590590

@@ -598,7 +598,7 @@ def test_microsecond_rounding(self):
598598
t = fts(0.9999999)
599599
self.assertEqual(t.second, 1)
600600
self.assertEqual(t.microsecond, 0)
601-
t = fts(1 / 2 ** 7)
601+
t = fts(1 / 2**7)
602602
self.assertEqual(t.second, 0)
603603
self.assertEqual(t.microsecond, 7812)
604604

tests/test_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_resolution_info(self):
293293

294294
@unittest.skip("Skip for CircuitPython - not implemented")
295295
def test_pickling(self):
296-
args = 20, 59, 16, 64 ** 2
296+
args = 20, 59, 16, 64**2
297297
orig = self.theclass(*args)
298298
for pickler, unpickler, proto in pickle_choices:
299299
green = pickler.dumps(orig, proto)
@@ -302,7 +302,7 @@ def test_pickling(self):
302302

303303
@unittest.skip("Skip for CircuitPython - not implemented")
304304
def test_pickling_subclass_time(self):
305-
args = 20, 59, 16, 64 ** 2
305+
args = 20, 59, 16, 64**2
306306
orig = SubclassTime(*args)
307307
for pickler, unpickler, proto in pickle_choices:
308308
green = pickler.dumps(orig, proto)

0 commit comments

Comments
 (0)