Skip to content

Commit 1bbac01

Browse files
Add missing mypy return type annotation in test
1 parent 440b823 commit 1bbac01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/cases_generator/test_analyzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import sys
1111
import os
1212
import unittest
13+
from typing import Any
1314

1415
# The cases_generator directory is not on sys.path when invoked from the repo
1516
# root, so add it explicitly.
@@ -32,7 +33,7 @@ def _parse(src: str) -> list[parsing.AstNode]:
3233
return nodes
3334

3435

35-
def _analyze(src: str):
36+
def _analyze(src: str) -> Any:
3637
"""Parse *src* and run analyze_forest(); return the Analysis object."""
3738
return analyze_forest(_parse(src))
3839

0 commit comments

Comments
 (0)