MCPcopy Index your code
hub / github.com/dropbox/pyannotate / ParseError

Class ParseError

pyannotate_tools/annotations/parse.py:84–93  ·  view source on GitHub ↗

Raised on any type comment parse error. The 'comment' attribute contains the comment that produced the error.

Source from the content-addressed store, hash-verified

82
83
84class 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
96def parse_json(path):

Callers 3

test_str_conversionMethod · 0.90
tokenizeFunction · 0.85
failMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_str_conversionMethod · 0.72