summaryrefslogtreecommitdiff
path: root/python/highlight.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-07 09:59:54 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commit61b4bb24e06aa955484293d35fa926c07887544b (patch)
tree29c6b7fecdac6270681260637439926ec07a259e /python/highlight.py
parent75f2463a46cc666e87120f3a30332fa80020b62e (diff)
Add type hints to basicblock.py, lowlevelil.py, architecture.py
Diffstat (limited to 'python/highlight.py')
-rw-r--r--python/highlight.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/python/highlight.py b/python/highlight.py
index 889eef33..539e71a5 100644
--- a/python/highlight.py
+++ b/python/highlight.py
@@ -20,8 +20,8 @@
# Binary Ninja components
-from binaryninja import _binaryninjacore as core
-from binaryninja.enums import HighlightColorStyle, HighlightStandardColor
+from . import _binaryninjacore as core
+from .enums import HighlightColorStyle, HighlightStandardColor
class HighlightColor(object):
@@ -49,7 +49,6 @@ class HighlightColor(object):
@property
def alpha(self):
- """ """
return self._alpha
@alpha.setter
@@ -58,7 +57,6 @@ class HighlightColor(object):
@property
def mix(self):
- """ """
return self._mix
@mix.setter
@@ -67,7 +65,6 @@ class HighlightColor(object):
@property
def mix_color(self):
- """ """
return self._mix_color
@mix_color.setter
@@ -76,7 +73,6 @@ class HighlightColor(object):
@property
def color(self):
- """ """
return self._color
@color.setter
@@ -85,7 +81,6 @@ class HighlightColor(object):
@property
def style(self):
- """ """
return self._style
@style.setter
@@ -94,7 +89,6 @@ class HighlightColor(object):
@property
def green(self):
- """ """
return self._green
@green.setter
@@ -103,7 +97,6 @@ class HighlightColor(object):
@property
def red(self):
- """ """
return self._red
@red.setter
@@ -112,7 +105,6 @@ class HighlightColor(object):
@property
def blue(self):
- """ """
return self._blue
@blue.setter
@@ -192,3 +184,4 @@ class HighlightColor(object):
elif color.style == HighlightColorStyle.CustomHighlightColor:
return HighlightColor(red=color.r, green=color.g, blue=color.b, alpha=color.alpha)
return HighlightColor(color=HighlightStandardColor.NoHighlightColor)
+