def _expand_integer(ty):
 if isinstance(ty, types.Integer):
  if ty.signed:
   return max(types.intp, ty)
  else:
   return max(types.uintp, ty)
 elif isinstance(ty, types.Boolean):
  return types.intp
 else:
  return ty

def _expand_integer ( ty ) : if isinstance ( ty , types . Integer ) : if ty . signed : return max ( types . intp , ty ) else : return max ( types . uintp , ty ) elif isinstance ( ty , types . Boolean ) : return types . intp else : return ty
if *ty* is an integer .