mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
16 lines
387 B
Python
16 lines
387 B
Python
from typing import ParamSpec, TypeVar, TypeVarTuple
|
|
|
|
T = TypeVar("T") # Error: TypeVars in stubs must start with _
|
|
|
|
TTuple = TypeVarTuple("TTuple") # Error: TypeVarTuples must also start with _
|
|
|
|
P = ParamSpec("P") # Error: ParamSpecs must start with _
|
|
|
|
_T = TypeVar("_T") # OK
|
|
|
|
_TTuple = TypeVarTuple("_TTuple") # OK
|
|
|
|
_P = ParamSpec("_P") # OK
|
|
|
|
def f():
|
|
T = TypeVar("T") # OK
|