def get_value(self, key: str) -> Any:
        """Get the value of a field.

        Args:
            key: The key of the field.

        Returns:
            The value of the field.
        """
        if isinstance(key, str):
            # Seems like this function signature was wrong all along?
            # If the user wants a field that we know of, get it and pass it off to _get_value
            return getattr(self, key)
        return key
Get the value of a field.

        Args:
            key: The key of the field.

        Returns:
            The value of the field.
        
reflex/base.py