blob: 7cb1a756d8fa64f804c54ad742f57624b8a41842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
"""Provides an abstract base class for targets."""
from abc import ABC, abstractmethod
from public import public
@public
class Target(ABC):
"""A target."""
@abstractmethod
def connect(self):
"""Connect to the target device."""
raise NotImplementedError
@abstractmethod
def disconnect(self):
"""Disconnect from the target device."""
raise NotImplementedError
|