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

Appearance settings

gh-133960: Improve typing.evaluate_forward_ref #133961

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 25, 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 Lib/test/test_typing.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
JelleZijlstra and AlexWaygood authored May 25, 2025
commit f0269c629d7b107992d974712b7832e22c48556f
3 changes: 2 additions & 1 deletion 3 Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7297,7 +7297,8 @@ def test_owner(self):
with self.assertRaises(NameError):
typing.evaluate_forward_ref(ref)

# Now should pick up the globals of this module
# We default to the globals of `owner`,
# so it no longer raises `NameError`
self.assertIs(
typing.evaluate_forward_ref(ref, owner=Loop), A
)
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.