From f336fa97d187890d7ec25973387a9715e67ea813 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 14 Mar 2022 13:56:01 -0400 Subject: add additional documentation warning users from creating objects with handles directly --- python/basicblock.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/basicblock.py') diff --git a/python/basicblock.py b/python/basicblock.py index 24f549d7..208ab9e7 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -49,6 +49,9 @@ class BasicBlockEdge: class BasicBlock: + """ + The ``BasicBlock`` object is returned during analysis and should not be directly instantiated. + """ def __init__(self, handle: core.BNBasicBlockHandle, view: Optional['binaryview.BinaryView'] = None): self._view = view _handle = core.BNBasicBlockHandle -- cgit v1.3.1