Coverage for src/fluree_py/http/protocol/mixin/where.py: 100%
8 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-02 03:03 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-02 03:03 +0000
1from typing import Generic, Protocol, TypeVar
3from fluree_py.types.query.where import WhereClause
6class HasWhereData(Protocol):
7 """Protocol for objects that have where clause data."""
9 where: WhereClause | None
12T = TypeVar("T", bound="HasWhereData", covariant=True)
15class SupportsWhere(Generic[T], Protocol):
16 """Protocol for objects that support where clause operations."""
18 where: WhereClause | None = None
20 def with_where(self, clause: WhereClause) -> T: ...