summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2022-05-11 14:12:15 -0400
committerAlexander Taylor <alex@vector35.com>2022-05-11 14:12:15 -0400
commit545fef9216559d08f58f7e20082b36352203a8cf (patch)
tree2994c4dc1cc46333294001abd4c91f2e65d1c58d /python
parent6668ad394b5b635d3d4905ac93ef1f0dce1278a9 (diff)
Add documentaiton decorator for Enterprise.
Diffstat (limited to 'python')
-rw-r--r--python/decorators.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/python/decorators.py b/python/decorators.py
index 7c7025e3..c6664652 100644
--- a/python/decorators.py
+++ b/python/decorators.py
@@ -23,4 +23,17 @@ def deprecated(cls):
else:
cls.__doc__ = deprecated_note
- return cls \ No newline at end of file
+ return cls
+
+
+def enterprise(cls):
+ enterprise_note = '''
+ .. note: This object is only available in the Enterprise edition of Binary Ninja.
+'''
+
+ if hasattr(cls, "__doc__") and cls.__doc__:
+ cls.__doc__ = enterprise_note + cls.__doc__
+ else:
+ cls.__doc__ = enterprise_note
+
+ return cls