Skip to content

Commit

Permalink
Use new parser to parse strings into types
Browse files Browse the repository at this point in the history
  • Loading branch information
chadrik committed Nov 3, 2016
1 parent 6b0c77b commit 775f575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 775f575

Please sign in to comment.