mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
remote is now our ABC - as it should be because it is the launching point of the interface.
it no longer inherits from CBindings. move steps abstract method into Remote class. This is a much more meaningful abstraction - because it is the principle behaviour that distinguishes each kind of Remote. add wrapper methods to CBindings. This provides a cleaner api for the Remote class. import abc as namespace throughout the package.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from abc import abstractmethod
|
||||
import abc
|
||||
from typing import Union
|
||||
|
||||
from .iremote import IRemote
|
||||
@@ -7,19 +7,19 @@ from .iremote import IRemote
|
||||
class Adapter(IRemote):
|
||||
"""Adapter to the common interface."""
|
||||
|
||||
@abstractmethod
|
||||
@abc.abstractmethod
|
||||
def ins(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@abc.abstractmethod
|
||||
def outs(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@abc.abstractmethod
|
||||
def input(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@abc.abstractmethod
|
||||
def output(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user