Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
annotationlib.py
on
main
User selector
All users
All time
Commit history
Commits on May 8, 2026
gh-149528: Remove `annotationlib.ForwardRef._evaluate` for 3.16 (#149529)
sobolevn
authored
4ae1a26
View commit details
Copy full SHA for 4ae1a26
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
Commits on Oct 23, 2024
gh-125614: annotationlib: Fix bug where not all Stringifiers are converted (#125635)
JelleZijlstra
authored
d3be6f9
View commit details
Copy full SHA for d3be6f9
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.