Skip to content

Commit 84ea478

Browse files
committed
.
1 parent 49558fd commit 84ea478

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

edb/pgsql/compiler/relgen.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
Iterable,
2929
Collection,
3030
NamedTuple,
31-
Generic,
3231
TypeVar,
3332
cast,
3433
)
@@ -380,14 +379,14 @@ def _get_expr_set_rvar(
380379
T_expr = TypeVar('T_expr', contravariant=True, bound=irast.Expr)
381380

382381

383-
class _GetExprRvarFunc(Protocol, Generic[T_expr]):
382+
class _GetExprRvarFunc[T_expr](Protocol):
384383
def __call__(
385384
self, __ir_set: irast.SetE[T_expr], *, ctx: context.CompilerContextLevel
386385
) -> SetRVars:
387386
pass
388387

389388

390-
def register_get_rvar(
389+
def register_get_rvar[T_expr](
391390
typ: type[T_expr],
392391
) -> Callable[[_GetExprRvarFunc[T_expr]], _GetExprRvarFunc[T_expr]]:
393392
def func(f: _GetExprRvarFunc[T_expr]) -> _GetExprRvarFunc[T_expr]:

0 commit comments

Comments
 (0)