diff options
| author | Zerotistic <54184933+Zerotistic@users.noreply.github.com> | 2024-10-30 23:03:19 +0100 |
|---|---|---|
| committer | galenbwill <galenbwill@users.noreply.github.com> | 2024-10-30 18:13:23 -0400 |
| commit | ba89b3894fac5a3f783afc59818796a19514dfe1 (patch) | |
| tree | 003520988e75b26a1a832b4c9bfe3e475a23618a /python/typelibrary.py | |
| parent | 1bb5a361c8cfab7b39692dec42e57514712503b1 (diff) | |
Use idiomatic Python
Diffstat (limited to 'python/typelibrary.py')
| -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) |
