Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ljeub-pometry committed Dec 13, 2024
1 parent dc39523 commit 019f2b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions python/python/raphtory/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class ConstProperties(object):
"""A view of constant properties of an entity"""

def __contains__(self, key):
"""Return key in self."""
"""Return bool(key in self)."""

def __eq__(self, value):
"""Return self==value."""
Expand Down Expand Up @@ -220,11 +220,12 @@ class DiskGraphStorage(object):
def load_from_parquets(
graph_dir,
layer_parquet_cols,
node_properties,
chunk_size,
t_props_chunk_size,
num_threads,
node_type_col,
node_properties=None,
chunk_size=10000000,
t_props_chunk_size=10000000,
num_threads=4,
node_type_col=None,
node_id_col=None,
): ...
def load_node_const_properties(self, location, col_names=None, chunk_size=None): ...
def merge_by_sorted_gids(self, other, graph_dir):
Expand Down Expand Up @@ -4498,7 +4499,7 @@ class Properties(object):
"""A view of the properties of an entity"""

def __contains__(self, key):
"""Return key in self."""
"""Return bool(key in self)."""

def __eq__(self, value):
"""Return self==value."""
Expand Down Expand Up @@ -4685,7 +4686,7 @@ class TemporalProperties(object):
"""A view of the temporal properties of an entity"""

def __contains__(self, key):
"""Return key in self."""
"""Return bool(key in self)."""

def __eq__(self, value):
"""Return self==value."""
Expand Down
2 changes: 1 addition & 1 deletion python/python/raphtory/algorithms/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Matching(object):
"""True if self else False"""

def __contains__(self, key):
"""Return key in self."""
"""Return bool(key in self)."""

def __iter__(self):
"""Implement iter(self)."""
Expand Down
1 change: 1 addition & 0 deletions python/tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Range queries are not supported for properties in tantivy (as of 0.22) because they are implemented as json.
# See https://github.com/quickwit-oss/tantivy/issues/1709


def test_search_in_python():
g = Graph()
g.add_node(
Expand Down

0 comments on commit 019f2b1

Please sign in to comment.