Skip to content

Commit

Permalink
Return self.j_partitioned_table (deephaven#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Jun 2, 2022
1 parent b4e2089 commit 7946355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/server/deephaven/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ class PartitionedTable(JObjectWrapper):

@property
def j_object(self) -> jpy.JType:
self.j_partitioned_table
return self.j_partitioned_table

def __init__(self, j_partitioned_table):
self.j_partitioned_table = j_partitioned_table
Expand Down Expand Up @@ -1430,11 +1430,11 @@ def sort(self, order_by: Union[str, Sequence[str]],
except Exception as e:
raise DHError(e, "failed to sort the partitioned table.") from e

def get_constituent(self, key_values: [Any, Sequence[Any]]) -> Optional[Table]:
def get_constituent(self, key_values: Union[Any, Sequence[Any]]) -> Optional[Table]:
"""Gets a single constituent table by its corresponding key column values.
Args:
key_values (Any, Sequence[Any]): the value(s) of the key column(s)
key_values (Union[Any, Sequence[Any]]): the value(s) of the key column(s)
Returns:
a Table or None
Expand Down

0 comments on commit 7946355

Please sign in to comment.