It’s the end of one of the most distinctive, inventive and entertaining series in recent British history