mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 17:43:09 +08:00
418 B
418 B
What it does
Checks for the creation of invalid ParamSpecs
Why is this bad?
There are several requirements that you must follow when creating a ParamSpec.
Examples
from typing import ParamSpec
P1 = ParamSpec("P1") # okay
# ParamSpec requires a name
P2 = ParamSpec() # error