diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-27 13:18:01 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:43 -0400 |
| commit | 63b3a0838334e6eb728d0e3c8250265e58c4cf4c (patch) | |
| tree | 7c1ef1850391906c96674b83a708448c5d4cee3b /python/types.py | |
| parent | bff5a6e38c945833ddb22c379d57f556244a2e25 (diff) | |
Add some additional typehints to architecture.py, function.py and metadata.py, callingconvention.py, binaryview.py, highlevelil.py, scriptingprovider.py, types.py
Fix typehint for Union[QualifiedName, str]
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/types.py b/python/types.py index dbdc601b..965d5f8d 100644 --- a/python/types.py +++ b/python/types.py @@ -20,9 +20,9 @@ import ctypes from typing import Generator, List, Union, Mapping, Tuple, Optional -from dataclasses import dataclass, field +from dataclasses import dataclass import uuid -from abc import ABC, abstractmethod +from abc import abstractmethod # Binary Ninja components from . import _binaryninjacore as core @@ -35,7 +35,6 @@ from . import architecture from . import types from . import binaryview from . import platform as _platform -from . import log from . import typelibrary QualifiedNameType = Union[List[str], str, 'QualifiedName', List[bytes]] @@ -522,7 +521,7 @@ class TypeBuilder: return NamedTypeReference.named_type_from_type_and_id(type_id, name, type) @staticmethod - def generate_named_type_reference(guid:str, name:QualifiedName): + def generate_named_type_reference(guid:str, name:QualifiedName) -> 'NamedTypeReferenceType': return NamedTypeReference.generate_named_type_reference(guid, name) @staticmethod |
