Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#413)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent e023728 commit fdc4c7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
files: ^(src|tests)
Expand Down
1 change: 1 addition & 0 deletions scripts/gen-release-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
3. Writes to ``scripts/latest-release-notes.md``, which can be
used with https://github.com/softprops/action-gh-release.
"""

from pathlib import Path

import pypandoc
Expand Down
12 changes: 4 additions & 8 deletions src/pytest_mock/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ def __call__(
autospec: Optional[builtins.object] = ...,
new_callable: None = ...,
**kwargs: Any,
) -> MockType:
...
) -> MockType: ...

@overload
def __call__(
Expand All @@ -362,8 +361,7 @@ def __call__(
autospec: Optional[builtins.object] = ...,
new_callable: None = ...,
**kwargs: Any,
) -> _T:
...
) -> _T: ...

@overload
def __call__(
Expand All @@ -376,8 +374,7 @@ def __call__(
autospec: Optional[builtins.object],
new_callable: Callable[[], _T],
**kwargs: Any,
) -> _T:
...
) -> _T: ...

@overload
def __call__(
Expand All @@ -391,8 +388,7 @@ def __call__(
*,
new_callable: Callable[[], _T],
**kwargs: Any,
) -> _T:
...
) -> _T: ...

def __call__(
self,
Expand Down

0 comments on commit fdc4c7f

Please sign in to comment.