Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ repos:
args: [--force-exclude] # omitting --write-changes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.16.1
hooks:
- id: ruff-check
args: [--fix, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.1.0
rev: v2.3.0
hooks:
- id: mypy
files: "^src/"
Expand Down
2 changes: 1 addition & 1 deletion src/ndv/controllers/_array_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _connect_datawrapper(

@staticmethod
def _default_display_model(
data: None | DataWrapper, **kwargs: Unpack[ArrayDisplayModelKwargs]
data: DataWrapper | None, **kwargs: Unpack[ArrayDisplayModelKwargs]
) -> ArrayDisplayModel:
"""
Creates a default ArrayDisplayModel when none is provided by the user.
Expand Down
2 changes: 1 addition & 1 deletion src/ndv/views/_vispy/_plot_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def add_view(

def add_widget(
self,
widget: None | scene.Widget = None,
widget: scene.Widget | None = None,
row: int | None = None,
col: int | None = None,
row_span: int = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/ndv/views/_wx/_array_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _add_icon(btn: wx.AnyButton, icon: str) -> None:

class _LutChannelSelector(wx.Panel):
def __init__(
self, parent: wx.Window, channels: None | list[ChannelKey] = None
self, parent: wx.Window, channels: list[ChannelKey] | None = None
) -> None:
super().__init__(parent)

Expand Down
Loading