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
  • 462,703
  • 120
  • 1,088
  • 1,195
Z-CODE
  • 19
  • 3

1 Answers1

0

try

from .group import Group

see PyCharm unresolved reference when importing class from other file

desertnaut
  • 57,590
  • 26
  • 140
  • 166
murali selenium
  • 3,847
  • 2
  • 11
  • 20