src/pybel/struct/graph.py
def add_warning(
        self,
        exception: BELParserWarning,
        context: Optional[Mapping[str, Any]] = None,
    ) -> None:
        """Add a warning to the internal warning log in the graph, with optional context information.

        :param exception: The exception that occurred
        :param context: The context from the parser when the exception occurred
        """
        self.warnings.append((
            self.path,
            exception,
            {} if context is None else context,
        ))
Add a warning to the internal warning log in the graph, with optional context information.

        :param exception: The exception that occurred
        :param context: The context from the parser when the exception occurred
        
Add a warning to the internal warning log in the graph, with optional context information.
Add a warning to the internal warning log in the graph with optional context information .
def add_warning(
        self,
        exception: BELParserWarning,
        context: Optional[Mapping[str, Any]] = None,
    ) -> None:
        self.warnings.append((
            self.path,
            exception,
            {} if context is None else context,
        ))
def add_warning ( self , exception : BELParserWarning , context : Optional [ Mapping [ str , Any ] ] = None , ) -> None : self . warnings . append ( ( self . path , exception , { } if context is None else context , ) )
Add a warning to the internal warning log in the graph, with optional context information.
Add a warning to the internal warning log in the graph with optional context information .
"""Add a warning to the internal warning log in the graph, with optional context information.

        :param exception: The exception that occurred
        :param context: The context from the parser when the exception occurred
        """
self
exception
BELParserWarning
The exception that occurred
The exception that occurred
context
Optional[Mapping[str, Any]]
The context from the parser when the exception occurred
The context from the parser when the exception occurred