We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5814f3 commit 70ce2e1Copy full SHA for 70ce2e1
mininterface/_mininterface/adaptor.py
@@ -26,9 +26,16 @@ class BackendAdaptor(ABC):
26
27
def __init__(self, interface: "Mininterface", settings: UiSettings | None):
28
self.interface = interface
29
+
30
# NOTE self.__annotations__ will pose problem at Python3.14
- self.facet = interface.facet = self.__annotations__["facet"](self, interface.env)
31
- self.settings = settings or self.__annotations__["settings"]()
+ for cl in type(self).__mro__:
32
+ try:
33
+ self.facet = interface.facet = cl.__annotations__["facet"](self, interface.env)
34
+ self.settings = settings or cl.__annotations__["settings"]()
35
+ except KeyError:
36
+ pass
37
+ else:
38
+ break
39
40
@abstractmethod
41
def widgetize(self, tag: Tag):
0 commit comments