     end
   end
 
+  @spec expr_with_imports(Macro.t(), {atom, list}) :: Macro.t()
   defp expr_with_imports(expr, {view, modules}) do
     quote do
       import Phoenix.View

      iex> assigns(socket, MyApp.UserView, "user.html")
      [:name, :age, :email]
  """
  def assigns(socket, view, partial) do
    view = view || Drab.get_view(socket)
    partial_hash = if partial, do: partial_hash(view, partial), else: index(socket)

    end
  end

  @spec ampere_assigns(Phoenix.Socket.t()) :: map
  defp ampere_assigns(socket) do
    socket
    |> Drab.pid()
