Go to Settings -> Editor -> Inscpection For both profiles (IDE Default and Project Default), Search & check "Python | Unresolved references" Make sure it is enabled with the below config