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 }}
Repository navigation
TypeAliasType can leak memory if name is a str subclass #140000
TypeAliasType's traverse implementation does not visit its name. This means that we can leak memory if name is passed an instance of a mutable str subclass.
Activity
JelleZijlstra commentedon Oct 12, 2025
This also affects TypeVar, TypeVarTuple, and ParamSpec.
efimov-mikhail commentedon Oct 12, 2025
Leak for all 4 types is confirmed on main, 3.14 and 3.13 branches. PR with fix is submitted.
gh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTuple`, `…
pythongh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTup…
[3.14] gh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTu…
[3.13] gh-140000: Traverse `name` attribute for `TypeVar`, `TypeVarTu…