From 0c63f927ead0f78184a7526ce1c707a88e7f52ad Mon Sep 17 00:00:00 2001 From: Maja Kądziołka Date: Fri, 19 May 2023 15:58:13 +0200 Subject: Add some missing type annotations --- python/platform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/platform.py') diff --git a/python/platform.py b/python/platform.py index ae124080..c7651373 100644 --- a/python/platform.py +++ b/python/platform.py @@ -306,7 +306,7 @@ class Platform(metaclass=_PlatformMetaClass): return result @property - def type_libraries(self): + def type_libraries(self) -> List['typelibrary.TypeLibrary']: count = ctypes.c_ulonglong(0) libs = core.BNGetPlatformTypeLibraries(self.handle, count) assert libs is not None, "core.BNGetPlatformTypeLibraries returned None" @@ -316,7 +316,7 @@ class Platform(metaclass=_PlatformMetaClass): core.BNFreeTypeLibraryList(libs, count.value) return result - def get_type_libraries_by_name(self, name): + def get_type_libraries_by_name(self, name) -> List['typelibrary.TypeLibrary']: count = ctypes.c_ulonglong(0) libs = core.BNGetPlatformTypeLibrariesByName(self.handle, name, count) assert libs is not None, "core.BNGetPlatformTypeLibrariesByName returned None" -- cgit v1.3.1