Skip to content

Commit bd31bb3

Browse files
Ryan Whitmorebrandonwillard
authored andcommitted
Update the pre-commit dependency versions and fix new flake8 errors.
1 parent 7787499 commit bd31bb3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ exclude: |
55
)$
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.4.0
8+
rev: v5.0.0
99
hooks:
1010
- id: debug-statements
1111
- id: check-merge-conflict
1212
- repo: https://github.com/psf/black
13-
rev: 23.3.0
13+
rev: 25.1.0
1414
hooks:
1515
- id: black
1616
language_version: python3
1717
- repo: https://github.com/pycqa/flake8
18-
rev: 6.0.0
18+
rev: 7.3.0
1919
hooks:
2020
- id: flake8
2121
- repo: https://github.com/pycqa/isort
22-
rev: 5.12.0
22+
rev: 6.0.1
2323
hooks:
2424
- id: isort
2525
- repo: https://github.com/PyCQA/autoflake

cons/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __hash__(self):
121121

122122
def __eq__(self, other):
123123
return (
124-
type(self) == type(other)
124+
type(self) is type(other)
125125
and self.car == other.car
126126
and self.cdr == other.cdr
127127
)

tests/test_cons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def test_car_cdr():
183183

184184
z = car(cons(iter([]), 1))
185185
expected = iter([])
186-
assert type(z) == type(expected)
186+
assert type(z) is type(expected)
187187
assert list(z) == list(expected)
188188

189189
li = iter([1])

0 commit comments

Comments
 (0)