parameters: (cls, data: np.ndarray, subarr: np.ndarray)
docstring: Ensure incoming data can be represented with matching signed-ness.
  
          Needed if the process of casting data from some accepted dtype to the internal
          dtype(s) bears the risk of truncation (e.g. float to int).
docstring_summary: Ensure incoming data can be represented with matching signed-ness.
docstring_tokens: Ensure incoming data can be represented with matching signed - ness .
function: def _assert_safe_casting(cls, data: np.ndarray, subarr: np.ndarray) -> None:
          """
          Ensure incoming data can be represented with matching signed-ness.
  
          Needed if the process of casting data from some accepted dtype to the internal
          dtype(s) bears the risk of truncation (e.g. float to int).
          """
          if is_integer_dtype(subarr.dtype):
              if not np.array_equal(data, subarr):
                  raise TypeError("Unsafe NumPy casting, you must explicitly cast")
function_tokens: def _assert_safe_casting ( cls , data : np . ndarray , subarr : np . ndarray ) -> None : if is_integer_dtype ( subarr . dtype ) : if not np . array_equal ( data , subarr ) : raise TypeError ( "Unsafe NumPy casting, you must explicitly cast" )