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.
product/gradle-plugin/src/main/python/pkg_resources/_vendor/packaging/_tokenizer.py