A severe thunderstorm warning for Toronto and parts of the GTA has ended.

Environment Canada issued a warning shortly after 5:30 p.m. Thursday ahead of unexpected storm.

The weather agency said a line of severe thunderstorms capable of producing strong wind gusts, hail and heavy rain was moving through the region.

The warning ended in the city just after 6 p.m.

It will be partly cloudy in Toronto, with a 40 percent chance of showers Thursday evening with a risk of thunderstorms.

On Friday, it will be sunny in the morning, but there is a 30 per cent chance of showers in the afternoon. The high will be 4 C.

This weekend, sunny conditions are in the forecast with a high of 4 C.