return cls(query=query.with_entities(XCom.value))
    def __repr__(self) -> str:
        return f"LazyXComAccess([{len(self)} items])"
    def __str__(self) -> str:
        return str(list(self))
    def __eq__(self, other: Any) -> bool:
        if isinstance(other, (list, LazyXComAccess)):
            z = itertools.zip_longest(iter(self), iter(other), fillvalue=object())
            return all(x == y for x, y in z)
        return NotImplemented
    def __getstate__(self) -> Any:
        
        
        
        
        
        
        with self._get_bound_query() as query:
            statement = query.statement.compile(
                query.session.get_bind(),
                
                
                compile_kwargs={"literal_binds": True},
            )
            return (str(statement), query.count())
    def __setstate__(self, state: Any) -> None: