Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-145754: Update signature retrieval in unittest.mock to use forwardref annotation format#145756

Open
mschoettle wants to merge 5 commits intopython:mainfrom
mschoettle:patch-1
Open

gh-145754: Update signature retrieval in unittest.mock to use forwardref annotation format#145756
mschoettle wants to merge 5 commits intopython:mainfrom
mschoettle:patch-1

Conversation

@mschoettle
Copy link

@mschoettlemschoettle commentedMar 10, 2026
edited
Loading

Uses annotation formatFORWARDREF instead of the defaultVALUE when callinginspect.signature.
STRING also seems to work but affects existing tests that check the signature.

Closes#145754

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@mschoettlemschoettle changed the titlegh-145754: Update signature retrieval in unittest.mock to use string annotation formatgh-145754: Update signature retrieval in unittest.mock to use forwardref annotation formatMar 10, 2026
@JelleZijlstra
Copy link
Member

This change looks right to me, please add a unit test and we'll hopefully get it merged!

mschoettle and johnslavik reacted with thumbs up emoji

@JelleZijlstraJelleZijlstra added the needs backport to 3.14bugs and security fixes labelMar 10, 2026
@mschoettlemschoettle marked this pull request as ready for reviewMarch 10, 2026 16:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@cjw296cjw296Awaiting requested review from cjw296cjw296 is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Autospeccing withunittest.mock is less robust with PEP 649

2 participants

@mschoettle@JelleZijlstra

[8]ページ先頭

©2009-2026 Movatter.jp