On a generalised Connes–Hochschild–Kostant–Rosenberg theorem