summaryrefslogtreecommitdiff
path: root/plugins/ext_test
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ext_test')
-rw-r--r--plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py b/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
index 02fd29b1..731a0f3b 100644
--- a/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
+++ b/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
@@ -2,12 +2,17 @@
# coding=utf-8
"""External test interface plugin"""
-from typing import Optional
+from typing import Optional, TYPE_CHECKING
import cmd2
+if TYPE_CHECKING:
+ _Base = cmd2.Cmd
+else:
+ _Base = object
-class ExternalTestMixin:
+
+class ExternalTestMixin(_Base):
"""A cmd2 plugin (mixin class) that exposes an interface to execute application commands from python"""
def __init__(self, *args, **kwargs):