Skip to content

Commit

Permalink
fix DynMonitorConfig definition
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Sep 29, 2024
1 parent da4ced9 commit 9e33b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions pyprland/plugins/scratchpads/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _comp_function(value1: str, _value2: str) -> bool:
return lambda value1, value2: value1 == value2


class DynMonitorConfig(dict):
class DynMonitorConfig:
"""A `dict`-like object allowing per-monitor overrides."""

def __init__(
Expand All @@ -75,10 +75,6 @@ def __init__(
self.ref = ref
self.mon_override = monitor_override

def update(self, other: dict[str, float | bool | list | str]) -> None:
"""Update the configuration with the given dictionary."""
self.ref.update(other)

def __setitem__(self, name: str, value: float | bool | str | list) -> None:
self.ref[name] = value

Expand Down
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.0-58"
VERSION = "2.4.0-60"

0 comments on commit 9e33b5c

Please sign in to comment.