Skip to content

Commit 461e383

Browse files
Update for_helpers.py
1 parent a54fea7 commit 461e383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from __future__ import annotations
99

10-
from typing import Callable, ClassVar, Optional
10+
from typing import Callable, ClassVar
1111

1212
from mypy.nodes import (
1313
ARG_POS,
@@ -786,7 +786,7 @@ class ForSequence(ForGenerator):
786786
Supports iterating in both forward and reverse.
787787
"""
788788

789-
length_reg: Optional[Value]
789+
length_reg: Value | AssignmentTarget | None
790790

791791
def init(self, expr_reg: Value, target_type: RType, reverse: bool) -> None:
792792
builder = self.builder

0 commit comments

Comments
 (0)