Skip to content

Commit fdc4c7f

Browse files
[pre-commit.ci] pre-commit autoupdate (#413)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0) * [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>
1 parent e023728 commit fdc4c7f

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ repos:
99
language: python
1010
additional_dependencies: [pygments, restructuredtext_lint]
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.2.2
12+
rev: v0.3.2
1313
hooks:
1414
- id: ruff
1515
args: ["--fix"]
1616
- id: ruff-format
1717
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: v1.8.0
18+
rev: v1.9.0
1919
hooks:
2020
- id: mypy
2121
files: ^(src|tests)

scripts/gen-release-notes.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
3. Writes to ``scripts/latest-release-notes.md``, which can be
77
used with https://github.com/softprops/action-gh-release.
88
"""
9+
910
from pathlib import Path
1011

1112
import pypandoc

src/pytest_mock/plugin.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ def __call__(
348348
autospec: Optional[builtins.object] = ...,
349349
new_callable: None = ...,
350350
**kwargs: Any,
351-
) -> MockType:
352-
...
351+
) -> MockType: ...
353352

354353
@overload
355354
def __call__(
@@ -362,8 +361,7 @@ def __call__(
362361
autospec: Optional[builtins.object] = ...,
363362
new_callable: None = ...,
364363
**kwargs: Any,
365-
) -> _T:
366-
...
364+
) -> _T: ...
367365

368366
@overload
369367
def __call__(
@@ -376,8 +374,7 @@ def __call__(
376374
autospec: Optional[builtins.object],
377375
new_callable: Callable[[], _T],
378376
**kwargs: Any,
379-
) -> _T:
380-
...
377+
) -> _T: ...
381378

382379
@overload
383380
def __call__(
@@ -391,8 +388,7 @@ def __call__(
391388
*,
392389
new_callable: Callable[[], _T],
393390
**kwargs: Any,
394-
) -> _T:
395-
...
391+
) -> _T: ...
396392

397393
def __call__(
398394
self,

0 commit comments

Comments
 (0)