Skip to content

Commit ad6c18e

Browse files
[pre-commit.ci] pre-commit autoupdate (#178)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](asottile/pyupgrade@v3.9.0...v3.10.1) - [github.com/pycqa/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0) * Check types with `is` instead of `==` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: David Brochart <[email protected]>
1 parent 5ea9646 commit ad6c18e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
args: [--profile=black]
3131

3232
- repo: https://github.com/asottile/pyupgrade
33-
rev: v3.9.0
33+
rev: v3.10.1
3434
hooks:
3535
- id: pyupgrade
3636
args: [--py37-plus]
@@ -44,7 +44,7 @@ repos:
4444
stages: [manual]
4545

4646
- repo: https://github.com/pycqa/flake8
47-
rev: 6.0.0
47+
rev: 6.1.0
4848
hooks:
4949
- id: flake8
5050
additional_dependencies:

jupyter_ydoc/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ def cast_all(
1212
) -> Union[List, Dict]:
1313
if isinstance(o, list):
1414
for i, v in enumerate(o):
15-
if type(v) == from_type:
15+
if type(v) is from_type:
1616
v2 = to_type(v)
1717
if v == v2:
1818
o[i] = v2
1919
elif isinstance(v, (list, dict)):
2020
cast_all(v, from_type, to_type)
2121
elif isinstance(o, dict):
2222
for k, v in o.items():
23-
if type(v) == from_type:
23+
if type(v) is from_type:
2424
v2 = to_type(v)
2525
if v == v2:
2626
o[k] = v2

0 commit comments

Comments
 (0)