def find(self, key: str | tuple[str, float]) -> int:
        """Get the position of an entry or return -1.

        :param key: The key to be looked up.
        """
        try:
            return self.index(key)
        except ValueError:
            return -1
Get the position of an entry or return -1.

        :param key: The key to be looked up.
        
src/werkzeug/datastructures/accept.py