Skip to content

Commit b57e208

Browse files
committed
Rename Type.finalized to Type._finalized
This returns a raw FFI handle and should only be used internally or in special FFI handling code
1 parent 0570a89 commit b57e208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def immutable_copy(self):
625625
TypeClass.EnumerationTypeClass: EnumerationType,
626626
TypeClass.NamedTypeReferenceClass: NamedTypeReferenceType,
627627
}
628-
return Types[self.type_class](self.finalized, self.platform, self.confidence)
628+
return Types[self.type_class](self._finalized, self.platform, self.confidence)
629629

630630
def mutable_copy(self) -> 'TypeBuilder':
631631
return self
@@ -787,7 +787,7 @@ def __len__(self):
787787
return self.width
788788

789789
@property
790-
def finalized(self):
790+
def _finalized(self):
791791
type_handle = core.BNFinalizeTypeBuilder(self._handle)
792792
assert type_handle is not None, "core.BNFinalizeTypeBuilder returned None"
793793
return type_handle

0 commit comments

Comments
 (0)