8000 gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike by JelleZijlstra · Pull Request #133415 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike #133415

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 5 commits into from
May 10, 2025
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
Update test_inspect.py
  • Loading branch information
JelleZijlstra authored May 9, 2025
commit 43ec64e9501a73533ed9177f23f30f60920ec67f
2 changes: 1 addition & 1 deletion Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5026,7 +5026,7 @@ def __annotations__(self):

cw = CallableWrapper(f)
sig = inspect.signature(cw, annotation_format=Format.FORWARDREF)
self.assertEqual(list(sig), ['args', 'kwargs'])
self.assertEqual(list(sig.parameters), ['args', 'kwargs'])

def test_signature_none_annotation(self):
class funclike:
Expand Down
Loading
0