We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a78d1e commit 9cbf202Copy full SHA for 9cbf202
adafruit_datetime.py
@@ -70,6 +70,7 @@
70
71
_INVALID_ISO_ERROR = "Invalid isoformat string: '{}'"
72
73
+
74
# Utility functions - universal
75
def _cmp(obj_x: Any, obj_y: Any) -> int:
76
return 0 if obj_x == obj_y else 1 if obj_x > obj_y else -1
@@ -331,7 +332,6 @@ def __new__(
331
332
hours: int = 0,
333
weeks: int = 0,
334
) -> "timedelta":
-
335
# Check that all inputs are ints or floats.
336
if not all(
337
isinstance(i, (int, float))
tests/test_time.py
@@ -62,7 +62,6 @@ def test_harmful_mixed_comparison(self):
62
63
64
class TestTime(HarmlessMixedComparison, unittest.TestCase):
65
66
theclass = cpy_time
67
theclass_cpython = cpython_time
68
0 commit comments