src/pybel/parser/parse_concept.py
def handle_namespace_default(self, line: str, position: int, tokens: ParseResults) -> ParseResults:
        """Handle parsing an identifier for the default namespace."""
        name = tokens[NAME]
        if not self.default_namespace:
            raise ValueError('Default namespace is not set')
        if name not in self.default_namespace:
            raise MissingDefaultNameWarning(self.get_line_number(), line, position, name)
        return tokens
Handle parsing an identifier for the default namespace.
Handle parsing an identifier for the default namespace.
Handle parsing an identifier for the default namespace .
def handle_namespace_default(self, line: str, position: int, tokens: ParseResults) -> ParseResults:
        name = tokens[NAME]
        if not self.default_namespace:
            raise ValueError('Default namespace is not set')
        if name not in self.default_namespace:
            raise MissingDefaultNameWarning(self.get_line_number(), line, position, name)
        return tokens
def handle_namespace_default ( self , line : str , position : int , tokens : ParseResults ) -> ParseResults : name = tokens [ NAME ] if not self . default_namespace : raise ValueError ( 'Default namespace is not set' ) if name not in self . default_namespace : raise MissingDefaultNameWarning ( self . get_line_number ( ) , line , position , name ) return tokens
Handle parsing an identifier for the default namespace.
Handle parsing an identifier for the default namespace .
"""Handle parsing an identifier for the default namespace."""
self
line
str
position
int
tokens
ParseResults