Skip to content

Commit 83b51a6

Browse files
chore: update pre-commit hooks (#1378)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0d7f721 commit 83b51a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ repos:
7474
- id: rst-inline-touching-normal
7575

7676
- repo: https://github.com/astral-sh/ruff-pre-commit
77-
rev: v0.9.10
77+
rev: v0.11.0
7878
hooks:
7979
- id: ruff
8080
types_or: [python, jupyter]

ipykernel/kernelbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
def _accepts_parameters(meth, param_names):
7272
parameters = inspect.signature(meth).parameters
73-
accepts = {param: False for param in param_names}
73+
accepts = dict.fromkeys(param_names, False)
7474

7575
for param in param_names:
7676
param_spec = parameters.get(param)

0 commit comments

Comments
 (0)