1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
from abc import ABC, abstractmethod from public import public @public class Target(ABC): """A target.""" @abstractmethod def connect(self): """Connect to the target device.""" ... @abstractmethod def disconnect(self): """Disconnect from the target device.""" ...