Raised on any type comment parse error. The 'comment' attribute contains the comment that produced the error.
| 82 | |
| 83 | |
| 84 | class ParseError(Exception): |
| 85 | """Raised on any type comment parse error. |
| 86 | |
| 87 | The 'comment' attribute contains the comment that produced the error. |
| 88 | """ |
| 89 | |
| 90 | def __init__(self, comment): |
| 91 | # type: (str) -> None |
| 92 | super(ParseError, self).__init__('Invalid type comment: %s' % comment) |
| 93 | self.comment = comment |
| 94 | |
| 95 | |
| 96 | def parse_json(path): |
no outgoing calls