Pychorm prompts the unresolved reference import module to report an error

When pychorm is used to write Python recently, every time a custom module is introduced, an error will be reported and “unresolved reference” will be prompted

Unresolved reference ‘LoginClass’ more… (Ctrl+F1)  

This inspection detects names that should resolve but don’t. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.

Baidu tried many methods, but the results were useless. In the end, it was easy to solve it in one step. Everyone can try

Right click the folder where the called module exists, “markdictionary as” – & gt“ Sources root”

Check again and the error report disappears


Similar Posts: