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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
typing.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 5, 2026
gh-105578: Raise `DeprecationWarning` on `typing.AnyStr` usage (#150190)
Show description for d746542
sobolevn
and
hugovk
authored
d746542
View commit details
Copy full SHA for d746542
View code at this point
Browse repository at this point
Commits on Aug 29, 2026
Do not recurse into `Literal` arguments during type evaluation (#156534)
Show description for de2ea9a
Viicos
authored
de2ea9a
View commit details
Copy full SHA for de2ea9a
View code at this point
Browse repository at this point
Commits on Aug 7, 2026
gh-155278: Avoid needlessly accessing `ForwardRef.__forward_code__` in `evaluate_forward_ref()` (#155279)
Viicos
authored
5ffefdb
View commit details
Copy full SHA for 5ffefdb
View code at this point
Browse repository at this point
gh-105499: Avoid using `functools.reduce()` to reconstruct `Union` objects (#155280)
Viicos
authored
cfcbfe4
View commit details
Copy full SHA for cfcbfe4
View code at this point
Browse repository at this point
Commits on Aug 3, 2026
gh-151728: Clear the typing caches at interpreter shutdown (GH-155002)
Show description for c10c7e9
wjakob
authored
c10c7e9
View commit details
Copy full SHA for c10c7e9
View code at this point
Browse repository at this point
Commits on Jul 31, 2026
gh-151728: Partially revert "Clear the typing caches at interpreter shutdown (GH-154858)" (GH-154992)
Show description for 6a139d6
encukou
authored
6a139d6
View commit details
Copy full SHA for 6a139d6
View code at this point
Browse repository at this point
Commits on Jul 30, 2026
gh-151728: Clear the typing caches at interpreter shutdown (GH-154858)
Show description for 22a6c51
wjakob
authored
22a6c51
View commit details
Copy full SHA for 22a6c51
View code at this point
Browse repository at this point
Commits on Jul 18, 2026
gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914)
Maxinho96
authored
a53b5b1
View commit details
Copy full SHA for a53b5b1
View code at this point
Browse repository at this point
Commits on Jul 3, 2026
gh-150641: Fix evaluating forward references in STRING format can 'leak' internal names in `typing` (#150648)
Show description for f75028f
IvyXu420
and
JelleZijlstra
authored
f75028f
View commit details
Copy full SHA for f75028f
View code at this point
Browse repository at this point
Commits on Jun 3, 2026
gh-132467: Document and test that generic aliases are not classes (#133504)
Show description for 5915a1f
AbduazizZiyodov
and
JelleZijlstra
authored
5915a1f
View commit details
Copy full SHA for 5915a1f
View code at this point
Browse repository at this point
Commits on May 22, 2026
gh-149995: Update typing.py docstrings and documentation (#149996)
Show description for f159419
JelleZijlstra
authored
f159419
View commit details
Copy full SHA for f159419
View code at this point
Browse repository at this point
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 May 6, 2026
gh-149415: Replace `typing._LazyAnnotationLib` with `lazy import` (#149416)
sobolevn
authored
347f538
View commit details
Copy full SHA for 347f538
View code at this point
Browse repository at this point
Commits on Apr 28, 2026
gh-148829: Implement PEP 661 (#148831)
Show description for 29a92ab
4 people
authored
29a92ab
View commit details
Copy full SHA for 29a92ab
View code at this point
Browse repository at this point
Commits on Apr 23, 2026
gh-146553: Fix infinite loop in typing.get_type_hints() on circular __wrapped__ (#148595)
ashm-dev
authored
be833e6
View commit details
Copy full SHA for be833e6
View code at this point
Browse repository at this point
Commits on Apr 20, 2026
gh-108411: Make typing.IO/BinaryIO arguments positional-only (#142906)
Show description for f6ed7c0
SpecLad
authored
f6ed7c0
View commit details
Copy full SHA for f6ed7c0
View code at this point
Browse repository at this point
Commits on Apr 18, 2026
gh-148639: Implement PEP 800 (typing.disjoint_base) (#148640)
Show description for 92164dc
3 people
authored
92164dc
View commit details
Copy full SHA for 92164dc
View code at this point
Browse repository at this point
Commits on Mar 1, 2026
gh-145033: Implement PEP 747 (#145034)
JelleZijlstra
authored
3484ef6
View commit details
Copy full SHA for 3484ef6
View code at this point
Browse repository at this point
Commits on Feb 11, 2026
gh-144321: Fix named tuple bug when input is a non-sequence iterable (#144600)
brijkapadia
authored
17ab556
View commit details
Copy full SHA for 17ab556
View code at this point
Browse repository at this point
Commits on Feb 9, 2026
gh-132604: Deprecate inherited runtime checkability of protocols (GH-143806)
Show description for ff531f9
johnslavik
and
JelleZijlstra
authored
ff531f9
View commit details
Copy full SHA for ff531f9
View code at this point
Browse repository at this point
Commits on Jan 2, 2026
Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (#143295)
AlexWaygood
authored
18f3c59
View commit details
Copy full SHA for 18f3c59
View code at this point
Browse repository at this point
Commits on Oct 20, 2025
gh-133601: Remove deprecated `typing.no_type_check_decorator` (#133602)
sobolevn
authored
e09837f
View commit details
Copy full SHA for e09837f
View code at this point
Browse repository at this point
Commits on Oct 16, 2025
gh-138859: Account for `ParamSpec` defaults that are not lists … (#138868)
bzoracler
authored
379fd02
View commit details
Copy full SHA for 379fd02
View code at this point
Browse repository at this point
Commits on Oct 11, 2025
gh-139905: Provide suggestion in error message if `Generic.__init_subclass__` was not called (#139943)
StanFromIreland
authored
5776d0d
View commit details
Copy full SHA for 5776d0d
View code at this point
Browse repository at this point
Commits on Oct 3, 2025
gh-137840: Implement PEP 728 (closed and extra_items in typing.TypedDict) (#137933)
Show description for fd7dac0
angela-tarantula
and
JelleZijlstra
authored
fd7dac0
View commit details
Copy full SHA for fd7dac0
View code at this point
Browse repository at this point
Commits on Sep 18, 2025
gh-118803: Make `ByteString` deprecations louder; remove `ByteString` from `typing.__all__` and `collections.abc.__all__` (#139127)
AlexWaygood
authored
293b05c
View commit details
Copy full SHA for 293b05c
View code at this point
Browse repository at this point
Commits on Sep 16, 2025
Revert "gh-118803: Remove `ByteString` from `typing` and `collections.abc` (#118804)" (#138990)
AlexWaygood
authored
530ddd3
View commit details
Copy full SHA for 530ddd3
View code at this point
Browse repository at this point
gh-137226: Fix get_type_hints() on generic TypedDict with stringified annotations (#138953)
Show description for 6d6aba2
JelleZijlstra
authored
6d6aba2
View commit details
Copy full SHA for 6d6aba2
View code at this point
Browse repository at this point
Commits on Sep 6, 2025
gh-137706: make typing._is_unpacked_typevartuple check for `True` instead of truthy (#137712)
DavidCEllis
authored
7e652f4
View commit details
Copy full SHA for 7e652f4
View code at this point
Browse repository at this point
Commits on Aug 24, 2025
gh-136021: Remove dead code for internal sentinel in `typing` (#138120)
Show description for f57be7b
brianschubert
authored
f57be7b
View commit details
Copy full SHA for f57be7b
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 Aug 3, 2025
gh-137191: Fix how type parameters are collected from `Protocol` and `Generic` bases with parameters (#137281)
sobolevn
authored
158b28d
View commit details
Copy full SHA for 158b28d
View code at this point
Browse repository at this point
Commits on Jul 6, 2025
gh-136316: Make typing.evaluate_forward_ref better at evaluating nested forwardrefs (#136319)
JelleZijlstra
authored
9312702
View commit details
Copy full SHA for 9312702
View code at this point
Browse repository at this point
gh-136021: Make `type_params` a required parameter for `typing._eval_type` (#136332)
sobolevn
authored
c89f76e
View commit details
Copy full SHA for c89f76e
View code at this point
Browse repository at this point
Commits on Jul 5, 2025
gh-136047: Allow typing._allow_reckless_class_checks to check `_py_abc` (#136115)
youknowone
authored
887e5c8
View commit details
Copy full SHA for 887e5c8
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.