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 Nov 17, 2024
1 parent fa2ec62 commit 92fb2f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pymmcore_widgets/_config_preset_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import DefaultDict, cast
from collections import defaultdict
from typing import cast

Check warning on line 2 in src/pymmcore_widgets/_config_preset_table.py

View check run for this annotation

Codecov / codecov/patch

src/pymmcore_widgets/_config_preset_table.py#L1-L2

Added lines #L1 - L2 were not covered by tests

from pymmcore_plus import CMMCorePlus
from PyQt6.QtCore import QEvent
Expand Down Expand Up @@ -234,7 +235,7 @@ def loadGroup(self, group: str) -> None:
def _rebuild_table(self, group: str) -> None:

Check warning on line 235 in src/pymmcore_widgets/_config_preset_table.py

View check run for this annotation

Codecov / codecov/patch

src/pymmcore_widgets/_config_preset_table.py#L235

Added line #L235 was not covered by tests
# Get all presets and their properties
# Mapping {preset -> {(dev, prop) -> val}}
preset2props: DefaultDict[str, dict[tuple[str, str], str]] = DefaultDict(dict)
preset2props: defaultdict[str, dict[tuple[str, str], str]] = defaultdict(dict)
for preset in self._core.getAvailableConfigs(group):
for dev, prop, _val in self._core.getConfigData(group, preset):
preset2props[preset][(dev, prop)] = _val

Check warning on line 241 in src/pymmcore_widgets/_config_preset_table.py

View check run for this annotation

Codecov / codecov/patch

src/pymmcore_widgets/_config_preset_table.py#L238-L241

Added lines #L238 - L241 were not covered by tests
Expand Down

0 comments on commit 92fb2f8

Please sign in to comment.