Skip to content

Commit

Permalink
Fixed syntax error. Removed @DataClass decorator.
Browse files Browse the repository at this point in the history
  • Loading branch information
burkeds committed Sep 18, 2024
1 parent b51aafa commit 40d22be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions src/ophyd_async/core/_readable.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import warnings
from contextlib import contextmanager
from dataclasses import dataclass
from typing import (
Any,
Callable,
Expand Down Expand Up @@ -31,13 +30,12 @@
T = TypeVar("T")


@dataclass
class PerSignalConfig(Dict[SignalW, Any]):
def __setitem__(self, signal: SignalW[T], value: T):
super().__setitem__(signal, value)

def __getitem__(self, signal: SignalW[T]) -> T:
return super().__getitem__[signal]
return super().__getitem__(signal)


class StandardReadable(
Expand Down
4 changes: 0 additions & 4 deletions tests/core/test_readable.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ def standard_readable_config():
]


def test_config_initialization(standard_readable_config):
assert len(standard_readable_config) == 0


@pytest.mark.parametrize("name, type_, value", test_data)
def test_config_set_get_item(standard_readable_config, name, type_, value):
mock_signal = MagicMock(spec=SignalW)
Expand Down

0 comments on commit 40d22be

Please sign in to comment.