def __new__(cls, name: str, bases: tuple[type], namespace: dict[str, Any]) -> type:
        """Create a new field-based class.

        Args:
            name: The name of the class.
            bases: The base classes.
            namespace: The class namespace.

        Returns:
            The new class.
        """
        # Collect inherited fields from base classes
        inherited_fields = cls._collect_inherited_fields(bases)

        # Get annotations from the namespace
        annotations = cls._resolve_annotations(namespace, name)

        # Process field overrides (fields with values but no annotations)
        own_fields = cls._process_field_overrides(
            namespace, annotations, inherited_fields
        )

        # Process annotated fields
        own_fields.update(
            cls._process_annotated_fields(namespace, annotations, inherited_fields)
        )

        # Finalize fields and store on class
        cls._finalize_fields(namespace, inherited_fields, own_fields)

        return super().__new__(cls, name, bases, namespace)
Create a new field-based class.

        Args:
            name: The name of the class.
            bases: The base classes.
            namespace: The class namespace.

        Returns:
            The new class.
        
reflex/components/field.py