Skip to content

Commit

Permalink
style: reduce some line noise
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 22, 2024
1 parent e77700c commit 640f390
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ibis/expr/types/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,7 @@ def _bind_to_parent_table(self, value) -> Value | None:
def __deferred_repr__(self):
return f"<column[{self.type()}]>"

def approx_nunique(
self,
where: ir.BooleanValue | None = None,
) -> ir.IntegerScalar:
def approx_nunique(self, where: ir.BooleanValue | None = None) -> ir.IntegerScalar:
"""Return the approximate number of distinct elements in `self`.
::: {.callout-note}
Expand Down Expand Up @@ -1584,10 +1581,7 @@ def approx_nunique(
self, where=self._bind_to_parent_table(where)
).to_expr()

def approx_median(
self,
where: ir.BooleanValue | None = None,
) -> Scalar:
def approx_median(self, where: ir.BooleanValue | None = None) -> Scalar:
"""Return an approximate of the median of `self`.
::: {.callout-note}
Expand Down Expand Up @@ -1945,11 +1939,7 @@ def nunique(self, where: ir.BooleanValue | None = None) -> ir.IntegerScalar:
self, where=self._bind_to_parent_table(where)
).to_expr()

def topk(
self,
k: int,
by: ir.Value | None = None,
) -> ir.Table:
def topk(self, k: int, by: ir.Value | None = None) -> ir.Table:
"""Return a "top k" expression.
Parameters
Expand Down

0 comments on commit 640f390

Please sign in to comment.