Skip to content

Commit e2bba31

Browse files
fix: resolve mypy type error in cache type annotation
1 parent d1a86b7 commit e2bba31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/languages/python/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
_MAX_CACHE_SIZE = 128
4343

44-
_resolve_cache: OrderedDict[tuple[str, str, tuple[tuple[str, str], ...]], ast.AST | None] = OrderedDict()
44+
_resolve_cache: OrderedDict[tuple[str, str, tuple[tuple[str, str], ...]], ast.FunctionDef | ast.AsyncFunctionDef | None] = OrderedDict()
4545

4646

4747
class PythonFunctionOptimizer(FunctionOptimizer):

0 commit comments

Comments
 (0)