Skip to content

Commit 17c206a

Browse files
committed
stringify remaining problematic annotations
1 parent d8161ba commit 17c206a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

numexpr/expressions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def binop(
177177
opfunc = getattr(operator, "__%s__" % opname)
178178

179179
@ophelper
180-
def operation(self: ExpressionNode, other: ExpressionNode) -> ExpressionNode:
180+
def operation(self: 'ExpressionNode', other: 'ExpressionNode') -> 'ExpressionNode':
181181
if reversed:
182182
self, other = other, self
183183
if allConstantNodes([self, other]):
@@ -192,7 +192,7 @@ def func(
192192
func: Callable[..., Any], minkind: str | None = None, maxkind: str | None = None
193193
) -> Callable[..., 'FuncNode | ConstantNode']:
194194
@ophelper
195-
def function(*args: ExpressionNode) -> 'FuncNode | ConstantNode':
195+
def function(*args: 'ExpressionNode') -> 'FuncNode | ConstantNode':
196196
if allConstantNodes(args):
197197
return ConstantNode(func(*[x.value for x in args]))
198198
kind = commonKind(args)

numexpr/necompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def setRegisterNumbersForTemporaries(ast: ASTNode, start: int) -> tuple[int, str
533533
return start + seen, signature
534534

535535

536-
_ThreeAddressForm: TypeAlias = tuple[bytes, Register, Unpack[tuple[Register, ...]]]
536+
_ThreeAddressForm: TypeAlias = tuple[bytes, Register, 'Unpack[tuple[Register, ...]]']
537537

538538

539539
def convertASTtoThreeAddrForm(ast: ASTNode) -> list[_ThreeAddressForm]:

0 commit comments

Comments
 (0)