6969InstructionsType = Generator [Tuple [List ['_function.InstructionTextToken' ], int ], None , None ]
7070NotificationType = Mapping ['BinaryDataNotification' , 'BinaryDataNotificationCallbacks' ]
7171
72- class ReferenceSource ( object ) :
72+ class ReferenceSource :
7373 def __init__ (self , func :Optional ['_function.Function' ], arch :Optional ['architecture.Architecture' ],
7474 addr :int ):
7575 self ._function = func
@@ -128,7 +128,7 @@ def address(self):
128128 return self ._address
129129
130130
131- class BinaryDataNotification ( object ) :
131+ class BinaryDataNotification :
132132 def __init__ (self ):
133133 pass
134134
@@ -205,7 +205,7 @@ def type_ref_changed(self, view:'BinaryView', name:'_types.QualifiedName', type:
205205 pass
206206
207207
208- class StringReference ( object ) :
208+ class StringReference :
209209 _decodings = {
210210 StringType .AsciiString : "ascii" ,
211211 StringType .Utf8String : "utf-8" ,
@@ -260,7 +260,7 @@ def view(self) -> 'BinaryView':
260260 return self ._view
261261
262262
263- class AnalysisCompletionEvent ( object ) :
263+ class AnalysisCompletionEvent :
264264 """
265265 The ``AnalysisCompletionEvent`` object provides an asynchronous mechanism for receiving
266266 callbacks when analysis is complete. The callback runs once. A completion event must be added
@@ -324,7 +324,7 @@ def view(self, value:'BinaryView'):
324324 self ._view = value
325325
326326
327- class BinaryViewEvent ( object ) :
327+ class BinaryViewEvent :
328328 """
329329 The ``BinaryViewEvent`` object provides a mechanism for receiving callbacks when a BinaryView
330330 is Finalized or the initial analysis is finished. The BinaryView finalized callbacks run before the
@@ -365,7 +365,8 @@ def _notify(view:core.BNBinaryView, callback:BinaryViewEventCallback) -> None:
365365 except :
366366 log .log_error (traceback .format_exc ())
367367
368- class ActiveAnalysisInfo (object ):
368+
369+ class ActiveAnalysisInfo :
369370 def __init__ (self , func :'_function.Function' , analysis_time :int , update_count :int , submit_count :int ):
370371 self ._func = func
371372 self ._analysis_time = analysis_time
@@ -392,7 +393,7 @@ def submit_count(self) -> int:
392393 return self ._submit_count
393394
394395
395- class AnalysisInfo ( object ) :
396+ class AnalysisInfo :
396397 def __init__ (self , state :AnalysisState , analysis_time :int , active_info :List [ActiveAnalysisInfo ]):
397398 self ._state = AnalysisState (state )
398399 self ._analysis_time = analysis_time
@@ -414,7 +415,7 @@ def active_info(self) -> List[ActiveAnalysisInfo]:
414415 return self ._active_info
415416
416417
417- class AnalysisProgress ( object ) :
418+ class AnalysisProgress :
418419 def __init__ (self , state :AnalysisState , count :int , total :int ):
419420 self ._state = state
420421 self ._count = count
@@ -449,7 +450,7 @@ def total(self) -> int:
449450 return self ._total
450451
451452
452- class BinaryDataNotificationCallbacks ( object ) :
453+ class BinaryDataNotificationCallbacks :
453454 def __init__ (self , view :'BinaryView' , notify :'BinaryDataNotification' ):
454455 self ._view = view
455456 self ._notify = notify
@@ -1006,8 +1007,8 @@ def add_binaryview_initial_analysis_completion_event(callback):
10061007 BinaryViewEvent .register (BinaryViewEventType .BinaryViewInitialAnalysisCompletionEvent , callback )
10071008
10081009
1009- class Segment ( object ) :
1010- def __init__ (self , handle :core .BNSegment ):
1010+ class Segment :
1011+ def __init__ (self , handle :core .BNSegmentHandle ):
10111012 self .handle = handle
10121013
10131014 def __del__ (self ):
@@ -1103,9 +1104,9 @@ def relocation_ranges_at(self, addr:int) -> Generator[Tuple[int, int], None, Non
11031104 core .BNFreeRelocationRanges (ranges , count )
11041105
11051106
1106- class Section ( object ) :
1107- def __init__ (self , handle :core .BNSection ):
1108- self .handle = core . handle_of_type ( handle , core . BNSection )
1107+ class Section :
1108+ def __init__ (self , handle :core .BNSectionHandle ):
1109+ self .handle = handle
11091110
11101111 def __del__ (self ):
11111112 core .BNFreeSection (self .handle )
@@ -1174,9 +1175,9 @@ def end(self) -> int:
11741175 return self .start + len (self )
11751176
11761177
1177- class TagType ( object ) :
1178- def __init__ (self , handle :core .BNTagType ):
1179- self .handle = core . handle_of_type ( handle , core . BNTagType )
1178+ class TagType :
1179+ def __init__ (self , handle :core .BNTagTypeHandle ):
1180+ self .handle = handle
11801181
11811182 def __del__ (self ):
11821183 core .BNFreeTagType (self .handle )
@@ -1239,9 +1240,9 @@ def type(self, value:TagTypeType) -> None:
12391240 core .BNTagTypeSetType (self .handle , value )
12401241
12411242
1242- class Tag ( object ) :
1243- def __init__ (self , handle :core .BNTag ):
1244- self .handle = core . handle_of_type ( handle , core . BNTag )
1243+ class Tag :
1244+ def __init__ (self , handle :core .BNTagHandle ):
1245+ self .handle = handle
12451246
12461247 def __del__ (self ):
12471248 core .BNFreeTag (self .handle )
@@ -1285,7 +1286,7 @@ class _BinaryViewAssociatedDataStore(associateddatastore._AssociatedDataStore):
12851286 _defaults = {}
12861287
12871288
1288- class BinaryView ( object ) :
1289+ class BinaryView :
12891290 """
12901291 ``class BinaryView`` implements a view on binary data, and presents a queryable interface of a binary file. One key
12911292 job of BinaryView is file format parsing which allows Binary Ninja to read, write, insert, remove portions
@@ -5429,7 +5430,7 @@ def get_linear_disassembly(self, settings=None):
54295430 ...
54305431 cf fa ed fe 07 00 00 01 ........
54315432 """
5432- class LinearDisassemblyIterator ( object ) :
5433+ class LinearDisassemblyIterator :
54335434 def __init__ (self , view , settings ):
54345435 self ._view = view
54355436 self ._settings = settings
@@ -6685,7 +6686,7 @@ def eval(self, expression, here=0):
66856686 return self .parse_expression (expression , here )
66866687
66876688
6688- class BinaryReader ( object ) :
6689+ class BinaryReader :
66896690 """
66906691 ``class BinaryReader`` is a convenience class for reading binary data.
66916692
@@ -7006,7 +7007,7 @@ def seek_relative(self, offset):
70067007 core .BNSeekBinaryReaderRelative (self ._handle , offset )
70077008
70087009
7009- class BinaryWriter ( object ) :
7010+ class BinaryWriter :
70107011 """
70117012 ``class BinaryWriter`` is a convenience class for writing binary data.
70127013
@@ -7254,7 +7255,7 @@ def seek_relative(self, offset):
72547255 core .BNSeekBinaryWriterRelative (self ._handle , offset )
72557256
72567257
7257- class StructuredDataValue ( object ) :
7258+ class StructuredDataValue :
72587259 def __init__ (self , type , address , value , endian ):
72597260 self ._type = type
72607261 self ._address = address
@@ -7319,7 +7320,7 @@ def str(self):
73197320 return str (self )
73207321
73217322
7322- class StructuredDataView ( object ) :
7323+ class StructuredDataView :
73237324 """
73247325 ``class StructuredDataView`` is a convenience class for reading structured binary data.
73257326
@@ -7441,7 +7442,7 @@ class CoreDataVariable:
74417442 auto_discovered :bool
74427443
74437444
7444- class DataVariable ( object ) :
7445+ class DataVariable :
74457446 def __init__ (self , var :CoreDataVariable , view :'BinaryView' ):
74467447 self ._var = var
74477448 self ._view = view
0 commit comments