SACRAMENTO — Contra Costa County District Attorney Diana Becton hosted a wedding party at her home over the summer that included dozens of people, a possible violation of coronavirus restrictions as the Bay Area fought back a surge in cases.

Becton, who is considered a contender to be appointed California’s attorney general, said she hosted the party in the backyard of her El Sobrante home on Aug. 1 to celebrate her marriage to her new husband.

She left a note on neighbors’ doors warning that “probably 20 to 30 additional cars” would be parked on the street that day.

Becton told The Chronicle that the event was a small, outdoor wedding and adhered to state and county restrictions, which allowed for outdoor religious and cultural events including weddings, but not receptions or after-parties. Parties that bring together people from numerous households were banned then and still are, according to the state Department of Public Health.

Becton’s wedding was followed by “music, yes, but I did not have a big party,” she said. She said she served a meal and wine to her guests.

Guests wore masks and maintained social distancing, Becton said, an account that one neighbor confirmed. Medical experts caution, however, that people are prone to let their guard down at such gatherings and remove their masks while celebrating or eating and drinking.

“I had a wedding in my yard that was really based upon the love that we shared,” Becton said. “I hope that I did not do anything that was in violation of any rules. If I did, it certainly was not my intent.”