This started happening for me in PyCharm2025.1. The fix was simple. Ensure quick fixes are enabled in the menu (click on the 3 dots on the right hand side):