src/pybel/parser/parse_control.py
def handle_annotation_key(self, line: str, position: int, tokens: ParseResults) -> ParseResults:
        """Handle an annotation key before parsing to validate that it's either enumerated or as a regex.

        :raise: MissingCitationException or UndefinedAnnotationWarning
        """
        key = tokens['key']
        self.raise_for_missing_citation(line, position)
        self.raise_for_undefined_annotation(line, position, key)
        return tokens
Handle an annotation key before parsing to validate that it's either enumerated or as a regex.

        :raise: MissingCitationException or UndefinedAnnotationWarning
        
Handle an annotation key before parsing to validate that it's either enumerated or as a regex.
Handle an annotation key before parsing to validate that it ' s either enumerated or as a regex .
def handle_annotation_key(self, line: str, position: int, tokens: ParseResults) -> ParseResults:
        key = tokens['key']
        self.raise_for_missing_citation(line, position)
        self.raise_for_undefined_annotation(line, position, key)
        return tokens
def handle_annotation_key ( self , line : str , position : int , tokens : ParseResults ) -> ParseResults : key = tokens [ 'key' ] self . raise_for_missing_citation ( line , position ) self . raise_for_undefined_annotation ( line , position , key ) return tokens
Handle an annotation key before parsing to validate that it's either enumerated or as a regex.
Handle an annotation key before parsing to validate that it ' s either enumerated or as a regex .
"""Handle an annotation key before parsing to validate that it's either enumerated or as a regex.

        :raise: MissingCitationException or UndefinedAnnotationWarning
        """
MissingCitationException or UndefinedAnnotationWarning
MissingCitationException or UndefinedAnnotationWarning
self
line
str
position
int
tokens
ParseResults