diff options
author | Eric Lin <anselor@gmail.com> | 2020-07-24 12:21:43 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-04 13:38:08 -0400 |
commit | 06cee9126839c465a356f8b44a5f008853eb8cad (patch) | |
tree | 88de1a9f07f20fb6a7e1a8f77b1c48fb41382d19 /plugins | |
parent | 787a31931ed4c4a18ae66a570d396b12b2b7b525 (diff) | |
download | cmd2-git-06cee9126839c465a356f8b44a5f008853eb8cad.tar.gz |
updated imports
Added additional documentation
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py | 2 | ||||
-rw-r--r-- | plugins/template/cmd2_myplugin/__init__.py | 2 | ||||
-rw-r--r-- | plugins/template/cmd2_myplugin/myplugin.py | 2 | ||||
-rw-r--r-- | plugins/template/setup.py | 1 | ||||
-rw-r--r-- | plugins/template/tasks.py | 1 | ||||
-rw-r--r-- | plugins/template/tests/test_myplugin.py | 2 |
6 files changed, 5 insertions, 5 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 df54e112..b1827f02 100644 --- a/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py +++ b/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py @@ -2,7 +2,7 @@ # coding=utf-8 """External test interface plugin""" -from typing import Optional, TYPE_CHECKING +from typing import TYPE_CHECKING, Optional import cmd2 diff --git a/plugins/template/cmd2_myplugin/__init__.py b/plugins/template/cmd2_myplugin/__init__.py index e66b62cd..838d828a 100644 --- a/plugins/template/cmd2_myplugin/__init__.py +++ b/plugins/template/cmd2_myplugin/__init__.py @@ -5,7 +5,7 @@ An overview of what myplugin does. """ -from .myplugin import empty_decorator, MyPluginMixin # noqa: F401 +from .myplugin import MyPluginMixin, empty_decorator # noqa: F401 try: # For python 3.8 and later diff --git a/plugins/template/cmd2_myplugin/myplugin.py b/plugins/template/cmd2_myplugin/myplugin.py index 4f1ff0e9..816198b0 100644 --- a/plugins/template/cmd2_myplugin/myplugin.py +++ b/plugins/template/cmd2_myplugin/myplugin.py @@ -3,7 +3,7 @@ """An example cmd2 plugin""" import functools -from typing import Callable, TYPE_CHECKING +from typing import TYPE_CHECKING, Callable import cmd2 diff --git a/plugins/template/setup.py b/plugins/template/setup.py index 17d06fa8..cb1dfd8e 100644 --- a/plugins/template/setup.py +++ b/plugins/template/setup.py @@ -2,6 +2,7 @@ # coding=utf-8 import os + import setuptools # diff --git a/plugins/template/tasks.py b/plugins/template/tasks.py index 3fcb4cbf..dcde1804 100644 --- a/plugins/template/tasks.py +++ b/plugins/template/tasks.py @@ -8,7 +8,6 @@ import shutil import invoke - TASK_ROOT = pathlib.Path(__file__).resolve().parent TASK_ROOT_STR = str(TASK_ROOT) diff --git a/plugins/template/tests/test_myplugin.py b/plugins/template/tests/test_myplugin.py index 4149f7df..d61181a6 100644 --- a/plugins/template/tests/test_myplugin.py +++ b/plugins/template/tests/test_myplugin.py @@ -1,8 +1,8 @@ # # coding=utf-8 -from cmd2 import cmd2 import cmd2_myplugin +from cmd2 import cmd2 ###### # |