parameters: (t)
docstring: Return the dtype type with endianness included if it's the case
docstring_summary: Return the dtype type with endianness included if it's the case
docstring_tokens: Return the dtype type with endianness included if it s the case
function: def _from_ctypes_scalar(t):
      """
      Return the dtype type with endianness included if it's the case
      """
      if getattr(t, '__ctype_be__', None) is t:
          return np.dtype('>' + t._type_)
      elif getattr(t, '__ctype_le__', None) is t:
          return np.dtype('<' + t._type_)
      else:
          return np.dtype(t._type_)
function_tokens: def _from_ctypes_scalar ( t ) : if getattr ( t , '__ctype_be__' , None ) is t : return np . dtype ( '>' + t . _type_ ) elif getattr ( t , '__ctype_le__' , None ) is t : return np . dtype ( '<' + t . _type_ ) else : return np . dtype ( t . _type_ )