Skip to content

[3.10] Fix inspect.signature call on mocks (#96335) (gh-96127) #108652

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

Closed
wants to merge 1 commit into from

Conversation

thechrisu
Copy link

@thechrisu thechrisu commented Aug 29, 2023

Backporting this fix to make inspect.signature() work with AsyncMock().
This was previously considered in #101647, but that required more rework. The change looked pretty straightforward, and tests passed locally, so putting this up.

Followed process at https://devguide.python.org/#quick-reference to create PR

@AlexWaygood
Copy link
Member

Hi, thanks for the PR! Unfortunately, Python 3.10 is now quite an old version of Python, that's only accepting security fixes. This isn't a security fix, as far as I can tell. I'm therefore closing this, but thanks again for the contribution :)

@thechrisu thechrisu deleted the backport-9e7d726-3.10 branch August 29, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants