Skip to content

Commit 2273956

Browse files
committed
Fix self check
1 parent 83e0b48 commit 2273956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/annotate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os.path
24
import sys
35
from html import escape
@@ -74,7 +76,7 @@ def generate_annotations(path: str, tree: MypyFile, ir: ModuleIR) -> AnnotatedSo
7476

7577
def function_annotations(func_ir: FuncIR) -> dict[int, list[str]]:
7678
# TODO: check if func_ir.line is -1
77-
anns = {}
79+
anns: dict[int, list[str]] = {}
7880
for block in func_ir.blocks:
7981
for op in block.ops:
8082
if isinstance(op, CallC):

0 commit comments

Comments
 (0)