tomli/tomllib compatibility layer added.

Type annotation Self removed.

python version requirement changed.

tomli added as runtime dependency if py ver < 3.11

minor version bump.
This commit is contained in:
onyx-and-iris
2022-09-03 16:28:19 +01:00
parent af0740ddec
commit 48b2857c58
8 changed files with 46 additions and 71 deletions

View File

@@ -1,6 +1,5 @@
import time
from abc import ABCMeta, abstractmethod
from typing import Self
class IRemote(metaclass=ABCMeta):
@@ -26,7 +25,7 @@ class IRemote(metaclass=ABCMeta):
def identifier(self):
pass
def apply(self, data: dict) -> Self:
def apply(self, data: dict):
def fget(attr, val):
if attr == "mode":
return (getattr(self, attr), val, 1)