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
reverted function changes
  • Loading branch information
Nicholas J Riasanovsky
Nicholas J Riasanovsky committed Jul 9, 2021
commit a8e24a98d0cce7464043f5eca061ea1f45c3f537
12 changes: 2 additions & 10 deletions numba/core/types/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,7 @@ def copy(self, this):

@property
def key(self):
# FIXME: With target-overload, the MethodTemplate can change depending
# on the target.
unique_impl = getattr(self.template, "_overload_func", None)
return self.typing_key, self.this, unique_impl
return self.typing_key, self.this

def get_impl_key(self, sig):
"""
Expand Down Expand Up @@ -568,12 +565,7 @@ def dispatcher(self):
A strong reference to the underlying numba.dispatcher.Dispatcher
instance.
"""
disp = self._get_object()
# TODO: improve interface to avoid the dynamic check here
if hasattr(disp, "_get_dispatcher_for_current_target"):
return disp._get_dispatcher_for_current_target()
else:
return disp
return self._get_object()

def get_overload(self, sig):
"""
Expand Down