A cord was in place for a number of hours while the police raked through the scene for clues.
Fortunately, nobody was hurt.
West Midlands police said they had launched an investigation to find out what had happened.
A force spokesman said, “We were called to hear of a gunshot fired from the window of a house in Yew Tree Lane, Wolverhampton, in the early hours of the morning.
“We received the report just before 3 am and luckily no one was injured.
“An investigation is underway, including a forensic examination of the scene to determine what happened. “