parameters: (cls)
return_statement: return impl
docstring: Defines ``Dict()``, the type-inferred version of the dictionary ctor.
  
      Parameters
      ----------
      cls : TypeRef
          Expecting a TypeRef of a precise DictType.
  
      See also: `redirect_type_ctor` in numba/target/bulitins.py
docstring_summary: Defines ``Dict()``, the type-inferred version of the dictionary ctor.
docstring_tokens: Defines Dict () the type - inferred version of the dictionary ctor .
function: def impl_numba_typeref_ctor(cls):
      """
      Defines ``Dict()``, the type-inferred version of the dictionary ctor.
  
      Parameters
      ----------
      cls : TypeRef
          Expecting a TypeRef of a precise DictType.
  
      See also: `redirect_type_ctor` in numba/target/bulitins.py
      """
      dict_ty = cls.instance_type
      if not isinstance(dict_ty, types.DictType):
          msg = "expecting a DictType but got {}".format(dict_ty)
          return  # reject
      # Ensure the dictionary is precisely typed.
      if not dict_ty.is_precise():
          msg = "expecting a precise DictType but got {}".format(dict_ty)
          raise errors.LoweringError(msg)
  
      key_type = types.TypeRef(dict_ty.key_type)
      value_type = types.TypeRef(dict_ty.value_type)
  
      def impl(cls):
          # Simply call .empty() with the key/value types from *cls*
          return Dict.empty(key_type, value_type)
  
      return impl
function_tokens: def impl_numba_typeref_ctor ( cls ) : dict_ty = cls . instance_type if not isinstance ( dict_ty , types . DictType ) : msg = "expecting a DictType but got {}" . format ( dict_ty ) return # reject # Ensure the dictionary is precisely typed. if not dict_ty . is_precise ( ) : msg = "expecting a precise DictType but got {}" . format ( dict_ty ) raise errors . LoweringError ( msg ) key_type = types . TypeRef ( dict_ty . key_type ) value_type = types . TypeRef ( dict_ty . value_type ) def impl ( cls ) : # Simply call .empty() with the key/value types from *cls* return Dict . empty ( key_type , value_type ) return impl