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
Old-style generic ParamSpec(default=...) fails if not provided as a type argument and not in the last position of a type list when passing type arguments #138859
In accordance to the typing specifications, default= of ParamSpec can take an ellipsis .... However, this is not handled properly with old-style generics in the following example and causes a runtime error:
changed the title [-]Old-style generic `ParamSpec(default=...)` crashes if not provided as a type argument and not in the last position of a type list when passing type arguments[/-][+]Old-style generic `ParamSpec(default=...)` fails if not provided as a type argument and not in the last position of a type list when passing type arguments[/+]on Sep 13, 2025
Activity
[-]Old-style generic `ParamSpec(default=...)` crashes if not provided as a type argument and not in the last position of a type list when passing type arguments[/-][+]Old-style generic `ParamSpec(default=...)` fails if not provided as a type argument and not in the last position of a type list when passing type arguments[/+]bzoracler commentedon Sep 13, 2025
@sobolevn I'm running the tests locally now with a fix, will make a PR in the next few minutes.
pythongh-138859: Account for `ParamSpec` defaults that are not lists …
pythongh-138859: Fix `TypeError` when there is a `ParamSpec` substitu…
sobolevn commentedon Sep 13, 2025
Oh, sorry! I've missed it. I will close my to let you contribute 👍
pythongh-138859: Account for `ParamSpec` defaults that are not lists …
gh-138859: Account for `ParamSpec` defaults that are not lists … (#13…
pythongh-138859: Account for `ParamSpec` defaults that are not lists … (
pythongh-138859: Account for `ParamSpec` defaults that are not lists … (
[3.13] gh-138859: Account for `ParamSpec` defaults that are not lists…
[3.14] gh-138859: Account for `ParamSpec` defaults that are not lists…
fix: resolve import error with python 3.13.9
fix: resolve import error with python 3.13.9
fix: resolve import error with python 3.13.9 (#1497)
pythongh-138859: Account for `ParamSpec` defaults that are not lists … (