Fix up some typing errors.

This commit is contained in:
Mike Auty
2018-07-22 13:19:20 +01:00
parent 717aabf190
commit 4897b7ab81
8 changed files with 34 additions and 26 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ def pointer_to_string(pointer: objects.Pointer,
def array_of_pointers(array: interfaces.objects.ObjectInterface,
count: int,
subtype: typing.Optional[typing.Union[str, interfaces.objects.Template]] = None,
context: interfaces.context.ContextInterface = None) -> interfaces.objects.ObjectInterface:
subtype: typing.Union[str, interfaces.objects.Template],
context: interfaces.context.ContextInterface) -> interfaces.objects.ObjectInterface:
"""Takes an object, and recasts it as an array of pointers to subtype"""
symbol_table = array.vol.type_name.split(constants.BANG)[0]
if isinstance(subtype, str) and context is not None: