https://github.com/python/cpython/commit/de53bf41682223dd3b7601c2ee67bf53bd5b4394 commit: de53bf41682223dd3b7601c2ee67bf53bd5b4394 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-01-08T11:49:41Z summary:
[3.14] gh-143089: Fix ParamSpec default examples to use list instead of tuple (GH-143179) (#143538) Co-authored-by: VanshAgarwal24036 <[email protected]> files: M Objects/typevarobject.c diff --git a/Objects/typevarobject.c b/Objects/typevarobject.c index e6dc4360eaeb62..2a45e7d66d3e8f 100644 --- a/Objects/typevarobject.c +++ b/Objects/typevarobject.c @@ -1450,13 +1450,13 @@ The following syntax creates a parameter specification that defaults\n\ to a callable accepting two positional-only arguments of types int\n\ and str:\n\ \n\ - type IntFuncDefault[**P = (int, str)] = Callable[P, int]\n\ + type IntFuncDefault[**P = [int, str]] = Callable[P, int]\n\ \n\ For compatibility with Python 3.11 and earlier, ParamSpec objects\n\ can also be created as follows::\n\ \n\ P = ParamSpec('P')\n\ - DefaultP = ParamSpec('DefaultP', default=(int, str))\n\ + DefaultP = ParamSpec('DefaultP', default=[int, str])\n\ \n\ Parameter specification variables exist primarily for the benefit of\n\ static type checkers. They are used to forward the parameter types of\n\ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
