src/pybel/parser/parse_metadata.py
def raise_for_redefined_annotation(self, line: str, position: int, annotation: str) -> None:
        """Raise an exception if the given annotation is already defined.

        :raises: RedefinedAnnotationError
        """
        if self.disallow_redefinition and self.has_annotation(annotation):
            raise RedefinedAnnotationError(self.get_line_number(), line, position, annotation)
Raise an exception if the given annotation is already defined.

        :raises: RedefinedAnnotationError
        
Raise an exception if the given annotation is already defined.
Raise an exception if the given annotation is already defined .
def raise_for_redefined_annotation(self, line: str, position: int, annotation: str) -> None:
        if self.disallow_redefinition and self.has_annotation(annotation):
            raise RedefinedAnnotationError(self.get_line_number(), line, position, annotation)
def raise_for_redefined_annotation ( self , line : str , position : int , annotation : str ) -> None : if self . disallow_redefinition and self . has_annotation ( annotation ) : raise RedefinedAnnotationError ( self . get_line_number ( ) , line , position , annotation )
Raise an exception if the given annotation is already defined.
Raise an exception if the given annotation is already defined .
"""Raise an exception if the given annotation is already defined.

        :raises: RedefinedAnnotationError
        """
None
self
line
str
position
int
annotation
str