def __init__(
        self,
        *,
        packages: Optional[list[str]] = None,
        extras: Optional[list[str]] = None,
    ) -> None:
        """Initialize the error.

        Args:
            packages: List of packages that are required but missing.
            extras: List of extras that are required but missing.
        """
        packages = packages or []

        if extras:
            packages.append(f"'strawberry-graphql[{','.join(extras)}]'")

        hint = f" (hint: pip install {' '.join(packages)})" if packages else ""

        self.message = f"Some optional dependencies are missing{hint}"
Initialize the error.

        Args:
            packages: List of packages that are required but missing.
            extras: List of extras that are required but missing.
        
strawberry/exceptions/missing_dependencies.py