Skip to content

Commit d7f3df7

Browse files
[pre-commit.ci] pre-commit autoupdate (#185)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.9.6](astral-sh/ruff-pre-commit@v0.7.3...v0.9.6) - [github.com/kynan/nbstripout: 0.8.0 → 0.8.1](kynan/nbstripout@0.8.0...0.8.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ori Kronfeld <[email protected]>
1 parent 721695c commit d7f3df7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
hooks:
1212
- id: prettier
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.7.3
14+
rev: v0.9.6
1515
hooks:
1616
- id: ruff
1717
types_or: [python, pyi, jupyter]
@@ -41,6 +41,6 @@ repos:
4141
language: fail
4242
files: '.*\.rej$'
4343
- repo: https://github.com/kynan/nbstripout
44-
rev: 0.8.0
44+
rev: 0.8.1
4545
hooks:
4646
- id: nbstripout

docs/extensions/typed_returns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def _process_return(lines: Iterable[str]) -> Generator[str, None, None]:
1515
for line in lines:
1616
if m := re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line):
17-
yield f'-{m["param"]} (:class:`~{m["type"]}`)'
17+
yield f"-{m['param']} (:class:`~{m['type']}`)"
1818
else:
1919
yield line
2020

0 commit comments

Comments
 (0)