Hyperactive STAT5 variants perturb T-cell development and promote immature or mature T-cell cancers.