Skip to content

Commit

Permalink
fix the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljeub-pometry committed Nov 19, 2024
1 parent 6a35a71 commit 9b721c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions python/python/raphtory/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2461,9 +2461,6 @@ class MutableNode(Node):
Parameters:
t (TimeInput): The timestamp at which the updates should be applied.
properties (PropInput): A dictionary of properties to update. Each key is a string representing the property name, and each value is of type Prop representing the property value. If None, no properties are updated.
Returns:
Result: A result object indicating success or failure. On failure, it contains a GraphError.
"""

def set_node_type(self, new_type: str):
Expand Down Expand Up @@ -2721,12 +2718,12 @@ class Node(object):
List[int]: A list of unix timestamps of the event history of node.
"""

def history_date_time(self):
def history_date_time(self) -> List[datetime]:
"""
Returns the history of a node, including node additions and changes made to node.
Returns:
List[Datetime]: A list of timestamps of the event history of node.
List[datetime]: A list of timestamps of the event history of node.
"""

Expand Down
5 changes: 1 addition & 4 deletions raphtory/src/python/graph/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl PyNode {
/// Returns the history of a node, including node additions and changes made to node.
///
/// Returns:
/// List[Datetime]: A list of timestamps of the event history of node.
/// List[datetime]: A list of timestamps of the event history of node.
///
pub fn history_date_time(&self) -> Option<Vec<DateTime<Utc>>> {
self.node.history_date_time()
Expand Down Expand Up @@ -373,9 +373,6 @@ impl PyMutableNode {
/// Parameters:
/// t (TimeInput): The timestamp at which the updates should be applied.
/// properties (PropInput): A dictionary of properties to update. Each key is a string representing the property name, and each value is of type Prop representing the property value. If None, no properties are updated.
///
/// Returns:
/// Result: A result object indicating success or failure. On failure, it contains a GraphError.
#[pyo3(signature = (t, properties=None))]
pub fn add_updates(
&self,
Expand Down

0 comments on commit 9b721c6

Please sign in to comment.