Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 3a78d1e commit 9cbf202
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion adafruit_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@

_INVALID_ISO_ERROR = "Invalid isoformat string: '{}'"


# Utility functions - universal
def _cmp(obj_x: Any, obj_y: Any) -> int:
return 0 if obj_x == obj_y else 1 if obj_x > obj_y else -1
Expand Down Expand Up @@ -331,7 +332,6 @@ def __new__(
hours: int = 0,
weeks: int = 0,
) -> "timedelta":

# Check that all inputs are ints or floats.
if not all(
isinstance(i, (int, float))
Expand Down
1 change: 0 additions & 1 deletion tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_harmful_mixed_comparison(self):


class TestTime(HarmlessMixedComparison, unittest.TestCase):

theclass = cpy_time
theclass_cpython = cpython_time

Expand Down

0 comments on commit 9cbf202

Please sign in to comment.