8000 gh-123492: Remove unnecessary `:func:` parentheses by mattwang44 · Pull Request #123493 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-123492: Remove unnecessary :func: parentheses #123493

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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert "remove unnecessary parentheses in func role from Lib"
This reverts commit d1d3b31.
  • Loading branch information
mattwang44 committed Aug 30, 2024
commit 1fb766b1c354ebdd6c33bd502222ddaf85e12f80
4 changes: 2 additions & 2 deletions Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ def assert_not_awaited(self):

def reset_mock(self, /, *args, **kwargs):
"""
See :func:`.Mock.reset_mock`
See :func:`.Mock.reset_mock()`
"""
super().reset_mock(*args, **kwargs)
self.await_count = 0
Expand Down Expand Up @@ -3050,7 +3050,7 @@ def __init__(self, *args, timeout=_timeout_unset, **kwargs):

def reset_mock(self, /, *args, **kwargs):
"""
See :func:`.Mock.reset_mock`
See :func:`.Mock.reset_mock()`
"""
super().reset_mock(*args, **kwargs)
self.__dict__["_mock_event"] = threading.Event()
Expand Down
Loading
0