Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format update #15

Merged
merged 3 commits into from Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -20,7 +20,7 @@ requires-python = ">= 3.11"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.ruff]
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = []

Expand Down
3 changes: 1 addition & 2 deletions src/zen_mapper/cluster.py
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
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