Volshell: Improve typing issues identified by mypy

This commit is contained in:
Mike Auty
2019-11-23 20:36:49 +00:00
parent a85f6f80f8
commit 0d37a3db5c
4 changed files with 42 additions and 25 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ class Volshell(generic.Volshell):
self.change_task(self.config['pid'])
return result
def display_type(self, object: Union[str, interfaces.objects.ObjectInterface], offset: int = None):
def display_type(self,
object: Union[str, interfaces.objects.ObjectInterface, interfaces.objects.Template],
offset: int = None):
"""Display Type describes the members of a particular object in alphabetical order"""
if isinstance(object, str):
if constants.BANG not in object: