23 Dec
2021
23 Dec
'21
1:21 a.m.
On Wed, Dec 22, 2021 at 10:18 AM Paul Bryan <pbryan@anode.ca> wrote:
If true, how would you write a callable where ParamSpec is an actual parameter?
ParamSpec can not be used in any other way. It is not a type, it is a magic thing that has special semantics. You cannot have something like ``` P = ParamSpec("P") def foo(a: bool, p: P) -> str: ... ``` -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>