google / pytype

A static type analyzer for Python code
https://google.github.io/pytype
Other
4.72k stars 274 forks source link

Support PEP 612: Parameter Specification Variables #786

Open rchen152 opened 3 years ago

rchen152 commented 3 years ago

PEP: https://www.python.org/dev/peps/pep-0612/

As a simple first step, we should add ParamSpec and Concatenate to the typing stub so typeshed can start using them (https://github.com/python/typeshed/issues/4827).

rchen152 commented 3 years ago

Assigning to myself to implement the "first step" described above, to unblock typeshed.

rchen152 commented 3 years ago

It's now possible to use a ParamSpec or Concatenate as the first argument to a Callable in type stubs.