diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/typelibrary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py index 232cd6a0..2796d0f1 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -183,7 +183,7 @@ class TypeLibrary: def add_alternate_name(self, name: str) -> None: """Adds an extra name to this type library used during library lookups and dependency resolution""" - if type(name) != str: + if not isinstance(name, str): raise ValueError(f"Expected name to be str, got {type(name)}") core.BNAddTypeLibraryAlternateName(self.handle, name) |
