Skip to content

[pre-commit.ci] pre-commit autoupdate #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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