Skip to content

Commit d7ac874

Browse files
committed
Fix filtering for registering third-party declarations from numba's typing registry
1 parent cc80df3 commit d7ac874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numba_cuda/numba/cuda/typing/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,9 @@ def is_external(obj):
512512
continue
513513
self.insert_attributes(ftcls(self))
514514
for gv, gty in loader.new_registrations("globals"):
515-
# If external_defs_only, check the global type's module
515+
# If external_defs_only, check the global value's module
516516
if external_defs_only:
517-
if hasattr(gty, "__module__") and not is_external(gty):
517+
if hasattr(gv, "__module__") and not is_external(gv):
518518
continue
519519
existing = self._lookup_global(gv)
520520
if existing is None:

0 commit comments

Comments
 (0)