We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49558fd commit 84ea478Copy full SHA for 84ea478
edb/pgsql/compiler/relgen.py
@@ -28,7 +28,6 @@
28
Iterable,
29
Collection,
30
NamedTuple,
31
- Generic,
32
TypeVar,
33
cast,
34
)
@@ -380,14 +379,14 @@ def _get_expr_set_rvar(
380
379
T_expr = TypeVar('T_expr', contravariant=True, bound=irast.Expr)
381
382
383
-class _GetExprRvarFunc(Protocol, Generic[T_expr]):
+class _GetExprRvarFunc[T_expr](Protocol):
384
def __call__(
385
self, __ir_set: irast.SetE[T_expr], *, ctx: context.CompilerContextLevel
386
) -> SetRVars:
387
pass
388
389
390
-def register_get_rvar(
+def register_get_rvar[T_expr](
391
typ: type[T_expr],
392
) -> Callable[[_GetExprRvarFunc[T_expr]], _GetExprRvarFunc[T_expr]]:
393
def func(f: _GetExprRvarFunc[T_expr]) -> _GetExprRvarFunc[T_expr]:
0 commit comments