Skip to content

Commit

Permalink
fmt: bump to Ruff formatter 2024.2 style
Browse files Browse the repository at this point in the history
  • Loading branch information
erooke committed Mar 24, 2024
1 parent 90ff0aa commit bfbf719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/zen_mapper/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class Clusterer(Protocol):
iterator of arrays of indices into that array which are disjoint.
"""

def __call__(self, data: np.ndarray) -> Iterator[np.ndarray]:
...
def __call__(self, data: np.ndarray) -> Iterator[np.ndarray]: ...


class sk_learn:
Expand Down
9 changes: 3 additions & 6 deletions src/zen_mapper/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@


class Cover(Protocol):
def __len__(self: Self) -> int:
...
def __len__(self: Self) -> int: ...

def __iter__(self: Self) -> Iterator[np.ndarray]:
...
def __iter__(self: Self) -> Iterator[np.ndarray]: ...


class CoverScheme(Protocol):
def __call__(self: Self, data: np.ndarray) -> Cover:
...
def __call__(self: Self, data: np.ndarray) -> Cover: ...


def rectangular_cover(centers, widths, data, tol=1e-9):
Expand Down

0 comments on commit bfbf719

Please sign in to comment.