def read(self) -> Token:
        """Consume the next token and return it."""
        token = self.next_token
        assert token is not None

        self.position += len(token.text)
        self.next_token = None

        return token
Consume the next token and return it.
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/packaging/_tokenizer.py