Skip to content

Commit

Permalink
Merge pull request #1098 from weaviate/export-submodules-from-outputs
Browse files Browse the repository at this point in the history
Export submodules to ease usage of `weaviate.outputs`
  • Loading branch information
tsmith023 committed Jun 6, 2024
2 parents b87481b + 5fd6293 commit a801c71
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion weaviate/collections/classes/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def nodes_verbose(nodes: List[NodeREST]) -> List[Node[Shards, Stats]]:
shard_count=node["stats"]["shardCount"],
)
if "stats" in node
else []
else Stats(
object_count=0,
shard_count=0,
)
),
status=node["status"],
version=node["version"],
Expand Down
2 changes: 1 addition & 1 deletion weaviate/collections/grpc/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get(
_validate_input(_ValidateArgument([_Sorting, None], "sort", sort))

if sort is not None:
sort_by: grpc.RepeatedCompositeFieldContainer[search_get_pb2.SortBy] = [
sort_by = [
search_get_pb2.SortBy(ascending=sort.ascending, path=[sort.prop])
for sort in sort.sorts
]
Expand Down
2 changes: 1 addition & 1 deletion weaviate/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def _split_scope(self, nodeid: str) -> str:


def pytest_xdist_make_scheduler(config: object, log: object) -> MyScheduler:
return MyScheduler(config, log)
return MyScheduler(config, log) # pyright: ignore
3 changes: 3 additions & 0 deletions weaviate/outputs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import aggregate, backup, batch, cluster, config, data, query, tenants

__all__ = ["aggregate", "backup", "batch", "cluster", "config", "data", "query", "tenants"]

0 comments on commit a801c71

Please sign in to comment.