Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CI
  • Loading branch information
sklam committed Apr 2, 2021
commit bd2c026e82858e2839f5acba7c48865651f04f93
6 changes: 5 additions & 1 deletion numba/core/typing/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,11 @@ def _get_impl(self, args, kws):
Returning a Dispatcher object. The Dispatcher object is cached
internally in `self._impl_cache`.
"""
flags = utils.ConfigStack().top()
cfgstk = utils.ConfigStack()
if cfgstk:
flags = cfgstk.top()
else:
flags = None
cache_key = self.context, tuple(args), tuple(kws.items()), flags
try:
impl, args = self._impl_cache[cache_key]
Expand Down