From 775f57526f274bb6032d6276b41d3987287271a3 Mon Sep 17 00:00:00 2001 From: Chad Dombrova Date: Wed, 2 Nov 2016 22:12:34 -0700 Subject: [PATCH] Use new parser to parse strings into types --- mypy/fastparse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mypy/fastparse.py b/mypy/fastparse.py index 18a844a75b9a..5f1d6ab67ca0 100644 --- a/mypy/fastparse.py +++ b/mypy/fastparse.py @@ -23,7 +23,6 @@ from mypy import defaults from mypy import experiments from mypy import hooks -from mypy.parsetype import parse_str_as_type from mypy.errors import Errors try: @@ -100,7 +99,7 @@ def pop_and_convert(name): if t is None: return AnyType() else: - return parse_str_as_type(t, line) + return parse_type_comment(t, line=line) if hooks.docstring_parser is not None: type_map = hooks.docstring_parser(docstring)