parameters: (dtype)
docstring: Return a Numba Type instance corresponding to the given Numpy *dtype*.
      NotImplementedError is raised on unsupported Numpy dtypes.
docstring_summary: Return a Numba Type instance corresponding to the given Numpy *dtype*.
      NotImplementedError is raised on unsupported Numpy dtypes.
docstring_tokens: Return a Numba Type instance corresponding to the given Numpy * dtype * . NotImplementedError is raised on unsupported Numpy dtypes .
function: def from_dtype(dtype):
      """
      Return a Numba Type instance corresponding to the given Numpy *dtype*.
      NotImplementedError is raised on unsupported Numpy dtypes.
      """
      if type(dtype) == type and issubclass(dtype, np.generic):
          dtype = np.dtype(dtype)
      elif getattr(dtype, "fields", None) is not None:
          return from_struct_dtype(dtype)
  
      try:
          return FROM_DTYPE[dtype]
      except KeyError:
          char = dtype.char
  
          if char in 'SU':
              return _from_str_dtype(dtype)
          if char in 'mM':
              return _from_datetime_dtype(dtype)
          if char in 'V':
              subtype = from_dtype(dtype.subdtype[0])
              return types.NestedArray(subtype, dtype.shape)
  
      raise NotImplementedError(dtype)
function_tokens: def from_dtype ( dtype ) : if type ( dtype ) == type and issubclass ( dtype , np . generic ) : dtype = np . dtype ( dtype ) elif getattr ( dtype , "fields" , None ) is not None : return from_struct_dtype ( dtype ) try : return FROM_DTYPE [ dtype ] except KeyError : char = dtype . char if char in 'SU' : return _from_str_dtype ( dtype ) if char in 'mM' : return _from_datetime_dtype ( dtype ) if char in 'V' : subtype = from_dtype ( dtype . subdtype [ 0 ] ) return types . NestedArray ( subtype , dtype . shape ) raise NotImplementedError ( dtype )