Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2024
1 parent 58e5a38 commit 87ee84a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ndv/models/_array_display_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""General model for ndv."""

import warnings
from collections.abc import Mapping, Sequence
from collections.abc import Sequence
from contextlib import suppress
from typing import Annotated, Any, Literal, Self, TypeAlias, cast

Check warning on line 6 in src/ndv/models/_array_display_model.py

View check run for this annotation

Codecov / codecov/patch

src/ndv/models/_array_display_model.py#L3-L6

Added lines #L3 - L6 were not covered by tests

Expand Down
5 changes: 2 additions & 3 deletions src/ndv/viewer_v2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections.abc import Hashable, Mapping, Sequence
from typing import TYPE_CHECKING, Any, Iterable, cast
from collections.abc import Hashable, Iterable, Mapping, Sequence
from typing import TYPE_CHECKING, Any, cast

Check warning on line 2 in src/ndv/viewer_v2.py

View check run for this annotation

Codecov / codecov/patch

src/ndv/viewer_v2.py#L1-L2

Added lines #L1 - L2 were not covered by tests

from qtpy.QtCore import Qt, Signal
from qtpy.QtWidgets import QFormLayout, QSlider, QVBoxLayout, QWidget
Expand Down Expand Up @@ -157,7 +157,6 @@ def _on_visible_axes_changed(
self._update_visible_sliders()
self._canvas.set_ndim(self.model.n_visible_axes)

Check warning on line 158 in src/ndv/viewer_v2.py

View check run for this annotation

Codecov / codecov/patch

src/ndv/viewer_v2.py#L157-L158

Added lines #L157 - L158 were not covered by tests


def _update_visible_sliders(self) -> None:

Check warning on line 160 in src/ndv/viewer_v2.py

View check run for this annotation

Codecov / codecov/patch

src/ndv/viewer_v2.py#L160

Added line #L160 was not covered by tests
"""Hide sliders corresponding to "visible" axes."""
if self._data_wrapper is None:
Expand Down

0 comments on commit 87ee84a

Please sign in to comment.