parameters: (val, c)
return_statement: return getattr(val, "_numba_type_", None)
docstring: Generic typeof() implementation.
docstring_summary: Generic typeof() implementation.
docstring_tokens: Generic typeof () implementation .
function: def typeof_impl(val, c):
      """
      Generic typeof() implementation.
      """
      tp = _typeof_buffer(val, c)
      if tp is not None:
          return tp
  
      # cffi is handled here as it does not expose a public base class
      # for exported functions or CompiledFFI instances.
      from . import cffi_utils
      if cffi_utils.SUPPORTED:
          if cffi_utils.is_cffi_func(val):
              return cffi_utils.make_function_type(val)
          if cffi_utils.is_ffi_instance(val):
              return types.ffi
  
      return getattr(val, "_numba_type_", None)
function_tokens: def typeof_impl ( val , c ) : tp = _typeof_buffer ( val , c ) if tp is not None : return tp # cffi is handled here as it does not expose a public base class # for exported functions or CompiledFFI instances. from . import cffi_utils if cffi_utils . SUPPORTED : if cffi_utils . is_cffi_func ( val ) : return cffi_utils . make_function_type ( val ) if cffi_utils . is_ffi_instance ( val ) : return types . ffi return getattr ( val , "_numba_type_" , None )