Anna Kendrick showed her sense of humour when a website appeared to mistake her for Anna Kournikova.

A picture of the Twilight actress was accidentally used on a news story about former tennis ace Kournikova and her partner Enrique Iglesias showing off photos of their newborn twins.

Seeing the funny side, Kendrick took a screenshot of the story and posted it on Twitter, writing: “Dear Yahoo: how do I get to this timeline where I’ve slept with Enrique Iqlesias please and thank you.”

She added: “I realize the confusion probably came from the two Anna K names, but she’s a tall blonde athlete and I’m – oh, oh – do they think I’m the baby?”

Fans thought Kendrick’s tweets were hilarious, jokingly sending their congratulations to the Pitch Perfect star.

“This is kinda hilariously awesome,” said one follower on Twitter, while another quipped: “You had twins with him and you don’t even remember?? Wow Anna, that’s low.”

Enrique Iglesias and Anna Kournikova (Anthony Harvey/PA)

Iglesias, 42, and Kournikova, 36, reportedly welcomed the twins in December.

The babies are a boy and a girl named Nicholas and Lucy, and were born in Miami, according to TMZ.