def contains ( self , token : str ) -> bool : self . _validate_token ( token ) return token in self
how to check in python if token is person or not
Return if the token is in the list or not .
def contains(self, token: str) -> bool:
        """Return if the token is in the list or not."""
        self._validate_token(token)
        return token in self