diff options
| author | Maja Kądziołka <maya@compilercrim.es> | 2023-05-19 15:58:13 +0200 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-05-26 13:42:22 -0400 |
| commit | 0c63f927ead0f78184a7526ce1c707a88e7f52ad (patch) | |
| tree | afa3cfc44de9d20989750ad47c5342510640aac9 /python/platform.py | |
| parent | a05596610bbbe9274d9300882fbbbfb41eec107d (diff) | |
Add some missing type annotations
Diffstat (limited to 'python/platform.py')
| -rw-r--r-- | python/platform.py | 4 |
1 files changed, 2 insertions, 2 deletions
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" |
