
The attack happened in Town Street at about 10.40pm on Saturday, May 29.
A 19-year-old man suffered serious injuries in the incident.
Police issued a CCTV appeal of three people they wanted to speak to in connection with the incident.
They have all been identified.
West Yorkshire Police confirmed that two men, aged 17 and 23, were arrested.
They were both bailed pending further enquiries.