Catch parser errors instead of error recovery when splitting param comments

This commit is contained in:
Dave Halter
2018-03-14 09:49:59 +01:00
parent afda309cb9
commit 13ba74515d
2 changed files with 10 additions and 1 deletions

View File

@@ -157,6 +157,11 @@ x = UNKNOWN_NAME2 # type: str
#? str()
x
def x(a, b):
# type: ([) -> a
#?
a
class Cat(object):
def __init__(self, age, friends, name):
# type: (int, List[Dog], str) -> None