Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sidlovescoding
Cpython
Repository navigation
Code
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
Cpython
Lib
annotationlib.py
on
sid-python
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 13, 2026
[3.15] gh-152692: Fix annotationlib.type_repr() for bound built-in methods (GH-152693) (GH-159280)
Show description for ed86174
miss-islington
and
tonghuaroot
authored
ed86174
View commit details
Copy full SHA for ed86174
View code at this point
Browse repository at this point
Commits on Sep 10, 2026
[3.15] gh-156924: Try reifying lazy imports in `ForwarRef.evaluate()` (GH-156940) (#157224)
Show description for 013c4ae
5 people
authored
013c4ae
View commit details
Copy full SHA for 013c4ae
View code at this point
Browse repository at this point
Commits on Apr 23, 2026
gh-148680: Replace internal names with type_reprs of objects in string representations of ForwardRef (#148682)
Show description for 158dbbb
DavidCEllis
and
ashm-dev
authored
158dbbb
View commit details
Copy full SHA for 158dbbb
View code at this point
Browse repository at this point
Commits on Mar 30, 2026
gh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ (#146557)
raminfp
authored
2cf6a68
View commit details
Copy full SHA for 2cf6a68
View code at this point
Browse repository at this point
Commits on Mar 16, 2026
gh-145870: Fix Format.SOURCE reference in get_annotations docstring (#145889)
Show description for 2a0fa50
wavebyrd
and
Carson Jones
authored
2a0fa50
View commit details
Copy full SHA for 2a0fa50
View code at this point
Browse repository at this point
Commits on Jan 19, 2026
gh-143831: Compare cells by identity in forward references (#143848)
johnslavik
authored
59d3594
View commit details
Copy full SHA for 59d3594
View code at this point
Browse repository at this point
Commits on Jan 8, 2026
gh-143517: Fix an edge case in rewriting stringified starred annotations (#143518)
johnslavik
authored
6c9f7b4
View commit details
Copy full SHA for 6c9f7b4
View code at this point
Browse repository at this point
Commits on Nov 20, 2025
gh-141489: Simplify closure/freevar iteration in `annotationlib._build_closure()` (#141490)
dr-carlos
authored
a35c683
View commit details
Copy full SHA for a35c683
View code at this point
Browse repository at this point
Commits on Nov 13, 2025
gh-137969: Fix double evaluation of `ForwardRef`s which rely on globals (#140974)
dr-carlos
authored
209eaff
View commit details
Copy full SHA for 209eaff
View code at this point
Browse repository at this point
Commits on Nov 3, 2025
gh-138151: Fix annotationlib handling of multiple nonlocals (#138164)
JelleZijlstra
authored
b1027d4
View commit details
Copy full SHA for b1027d4
View code at this point
Browse repository at this point
Revert "gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (#138075)" (#140930)
Show description for 349de57
JelleZijlstra
authored
349de57
View commit details
Copy full SHA for 349de57
View code at this point
Browse repository at this point
gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (#138075)
Show description for 63e01d6
dr-carlos
and
JelleZijlstra
authored
63e01d6
View commit details
Copy full SHA for 63e01d6
View code at this point
Browse repository at this point
Commits on Nov 2, 2025
gh-138425: Correctly partially evaluate global generics with undefined params in `ref.evaluate(format=Format.FORWARDREF)` (#138430)
Show description for e66f87c
dr-carlos
and
sobolevn
authored
e66f87c
View commit details
Copy full SHA for e66f87c
View code at this point
Browse repository at this point
Commits on Oct 21, 2025
gh-138764: annotationlib: Make `call_annotate_function` fallback to using `VALUE` annotations if both the requested format and `VALUE_WITH_FAKE_GLOBALS` are not implemented (#138803)
DavidCEllis
authored
95c257e
View commit details
Copy full SHA for 95c257e
View code at this point
Browse repository at this point
Commits on Oct 20, 2025
gh-138891: fix star-unpack in get_annotations (#138951)
wiomoc
authored
c6be6e4
View commit details
Copy full SHA for c6be6e4
View code at this point
Browse repository at this point
Commits on Sep 23, 2025
gh-138558: Improve handling of Template annotations in annotationlib (#139072)
davepeck
authored
6ec058a
View commit details
Copy full SHA for 6ec058a
View code at this point
Browse repository at this point
Commits on Aug 13, 2025
gh-137226: Fix behavior of ForwardRef.evaluate with type_params (#137227)
Show description for 089a324
JelleZijlstra
authored
089a324
View commit details
Copy full SHA for 089a324
View code at this point
Browse repository at this point
Commits on Jun 18, 2025
gh-135646: Raise consistent `NameError` exceptions in `ForwardRef.evaluate()` (#135663)
Viicos
authored
343719d
View commit details
Copy full SHA for 343719d
View code at this point
Browse repository at this point
gh-119180: Only fetch globals and locals if necessary in `annotationlib.get_annotations()` (#135644)
Viicos
authored
504ae60
View commit details
Copy full SHA for 504ae60
View code at this point
Browse repository at this point
Commits on May 25, 2025
gh-133684: Fix get_annotations() where PEP 563 is involved (#133795)
JelleZijlstra
authored
3e562b3
View commit details
Copy full SHA for 3e562b3
View code at this point
Browse repository at this point
Commits on May 8, 2025
gh-133551: Support t-strings in annotationlib (#133553)
Show description for 90f476e
JelleZijlstra
authored
90f476e
View commit details
Copy full SHA for 90f476e
View code at this point
Browse repository at this point
Commits on May 5, 2025
gh-119180: Make the FORWARDREF format work with more kinds of runtime errors (#133407)
JelleZijlstra
authored
4e498d1
View commit details
Copy full SHA for 4e498d1
View code at this point
Browse repository at this point
Commits on May 4, 2025
gh-125618: Make FORWARDREF format succeed more often (#132818)
Show description for af5799f
JelleZijlstra
authored
af5799f
View commit details
Copy full SHA for af5799f
View code at this point
Browse repository at this point
gh-132805: annotationlib: Fix handling of non-constant values in FORWARDREF (#132812)
Show description for c8f233c
JelleZijlstra
and
DavidCEllis
authored
c8f233c
View commit details
Copy full SHA for c8f233c
View code at this point
Browse repository at this point
gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function (#132490)
Show description for 7cb86c5
JelleZijlstra
authored
7cb86c5
View commit details
Copy full SHA for 7cb86c5
View code at this point
Browse repository at this point
Commits on Apr 16, 2025
annotationlib: Move ForwardRef tests to test_annotationlib (#132571)
Show description for 7dcaebf
JelleZijlstra
authored
7dcaebf
View commit details
Copy full SHA for 7dcaebf
View code at this point
Browse repository at this point
annotationlib: Remove some unnecessary dict copies (#132495)
JelleZijlstra
authored
a8ca26d
View commit details
Copy full SHA for a8ca26d
View code at this point
Browse repository at this point
Commits on Apr 15, 2025
gh-132491: Rename annotationlib.value_to_string to type_repr (#132492)
JelleZijlstra
authored
11f6603
View commit details
Copy full SHA for 11f6603
View code at this point
Browse repository at this point
gh-129463: Remove two attributes from ForwardRef equality (#132283)
JelleZijlstra
authored
5e80fee
View commit details
Copy full SHA for 5e80fee
View code at this point
Browse repository at this point
Commits on Apr 13, 2025
gh-132064: Make annotationlib use __annotate__ if only it is present (#132195)
JelleZijlstra
authored
4d3ad04
View commit details
Copy full SHA for 4d3ad04
View code at this point
Browse repository at this point
Commits on Apr 11, 2025
gh-132261: Store annotations at hidden internal keys in the class dict (#132345)
JelleZijlstra
authored
07b8d31
View commit details
Copy full SHA for 07b8d31
View code at this point
Browse repository at this point
Commits on Apr 5, 2025
gh-129463, gh-128593: Simplify ForwardRef (#129465)
JelleZijlstra
authored
ac14d4a
View commit details
Copy full SHA for ac14d4a
View code at this point
Browse repository at this point
Commits on Apr 4, 2025
gh-118761: Defer import of functools in annotationlib (#132059)
JelleZijlstra
authored
255eb37
View commit details
Copy full SHA for 255eb37
View code at this point
Browse repository at this point
Commits on Apr 3, 2025
Remove deferred ``typing`` import in ``annotationlib`` (#132034)
AA-Turner
authored
b3e3cc0
View commit details
Copy full SHA for b3e3cc0
View code at this point
Browse repository at this point
Commits on Nov 26, 2024
gh-119180: Add VALUE_WITH_FAKE_GLOBALS format to annotationlib (#124415)
JelleZijlstra
authored
dcf6292
View commit details
Copy full SHA for dcf6292
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.