Files
openide/python/testData/highlighting/paramSpecWithBoundsReported.py
Daniil Kalinin ac6316198f PY-61857 Implement PyTypeParameterListAnnotator for PEP 695 type parameter syntax
It reports such cases:
* Duplicated type parameter names in type parameter lists
* Wrong number of type var constraints (one or zero) defined with new-style PEP 695 syntax
* Use of constraints for ParamSpec and TypeVarTuple type parameter kinds

GitOrigin-RevId: e0e8e7eb4dcef0c1b56ea49a3527666e3c713d86
2023-11-06 19:59:18 +00:00

1 line
115 B
Python

def foo[**P: <error descr="ParamSpec and TypeVarTuple cannot have constraints and upper bounds">str</error>](): ...