Place a large skillet over medium heat and add the 2 tablespoons (30 ml / 1 fl oz) of oil or butter.
Once the oil is hot or the butter has melted, add the sliced shallots and apples.
Cook, stirring occasionally, until the shallots and apples have softened and turned a lovely golden brown, which should take about 5 to 7 minutes.
Stir in the fresh thyme and pour in the sherry.
Bring the mixture to a boil and continue to cook until the sherry has almost completely evaporated, about 2 minutes.
Add the drained kidney beans to the skillet along with a generous sprinkling of salt and pepper.
Stir to combine and cook for another 5 minutes, allowing the flavors to meld.
Taste the dish and adjust the seasoning with more salt and pepper if needed.
Serve immediately, garnished with an extra pat of butter or a drizzle of olive oil if you like.