0

in PyCharm my import highlighted in red but code works. What should I do to remove this red underline highlighting

my import looks as follow:

from group import Group

In PyCharm this line is highlighted in red but code works. it says:

Unresolved reference 'Group' less... (Ctrl+F1) Inspection info: 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.

alecxe
  • 441,113
  • 110
  • 1,021
  • 1,148
Z-CODE
  • 19
  • 3

1 Answers1

0

try from .group import Group

see this PyCharm unresolved reference when importing class from other file. i am not able to duplicate this question but you can find answer here.

murali selenium
  • 3,717
  • 2
  • 10
  • 20