PyCharm shows unresolved references error for valid code September 27, 2022 by Tarik File | Invalidate Caches… and restarting PyCharm helps.