summaryrefslogtreecommitdiffstats
path: root/module/api/ApiComponent.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/api/ApiComponent.py')
-rw-r--r--module/api/ApiComponent.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/api/ApiComponent.py b/module/api/ApiComponent.py
index 2b09d05a3..ba96b3be9 100644
--- a/module/api/ApiComponent.py
+++ b/module/api/ApiComponent.py
@@ -1,12 +1,17 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-class ApiComponent:
+from module.remote.ttypes import Iface
+
+# Workaround to let code-completion think, this is subclass of Iface
+Iface = object
+class ApiComponent(Iface):
def __init__(self, core):
# Only for auto completion, this class can not be instantiated
from pyload import Core
assert isinstance(core, Core)
+ assert issubclass(ApiComponent, Iface)
self.core = core
# No instantiating!
raise Exception() \ No newline at end of file