Open
Description
I found that right now ParamSpec
allows three kw-only arguments: bound=None, covariant=False, contravariant=False
. Just like PEP612 states:
The runtime should accept bounds and covariant and contravariant arguments in the declaration just as typing.TypeVar does, but for now we will defer the standardization of the semantics of those options to a later PEP.
What are the use-cases for this? How can ParamSpec
can be bound to a value? Or how can it be covariant
? It does not seem to be semantically valid.
Maybe we should remove these arguments? What do others think?
Activity