From 8d5c0136c609564739527a528b9c4d9a6d6721ba Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 13 Feb 2026 19:18:46 -0800 Subject: [Python] Add missing `TypeLibrary.duplicate` API --- python/typelibrary.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') diff --git a/python/typelibrary.py b/python/typelibrary.py index 65aabb12..14b882ea 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -139,6 +139,14 @@ class TypeLibrary: """Sets the name of a type library instance that has not been finalized""" core.BNSetTypeLibraryName(self.handle, value) + def duplicate(self) -> 'TypeLibrary': + """ + Creates a new type library instance with a random GUID and the same data as the current instance. + + :rtype: TypeLibrary + """ + return TypeLibrary(core.BNDuplicateTypeLibrary(self.handle)) + @property def dependency_name(self) -> Optional[str]: """ -- cgit v1.3.1