Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2023
1 parent 0c46390 commit 5aa53a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/genomicranges/GenomicRangesList.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ def _validate(self, ranges: Union[GenomicRanges, List[GenomicRanges]]):
raise TypeError(
"`ranges` must be either a `GenomicRanges` or a list of `GenomicRanges`."
)

def __repr__(self):
from io import StringIO
from rich.console import Console
from rich.table import Table
from rich.text import Text

table = Table(
title=f"GenomicRangesList with {len(self)} genomic elements",
Expand Down Expand Up @@ -483,7 +482,7 @@ def empty(cls, n: int):
_range_lengths = [0] * n

return cls(ranges=GenomicRanges.empty(), range_lengths=_range_lengths)

def combine(self, *other: "GenomicRangesList") -> "GenomicRangesList":
"""Combine multiple `GenomicRangesList` objects by row.
Expand Down

0 comments on commit 5aa53a2

Please sign in to comment.