The aim of this single-arm phase 2 clinical trial is to evaluate the anti-cancer activity of Talazoparib (also known as BMN 673) in patients with advanced breast cancer with specific genetic or tumor genomic alterations. Patients with either triple-negative or HER2-negative breast cancer are eligible.