diff --git a/python/helpers/pycharm_generator_utils/module_redeclarator.py b/python/helpers/pycharm_generator_utils/module_redeclarator.py index bdffe3ec8e97..287202448c7f 100644 --- a/python/helpers/pycharm_generator_utils/module_redeclarator.py +++ b/python/helpers/pycharm_generator_utils/module_redeclarator.py @@ -294,6 +294,8 @@ class ModuleRedeclarator(object): break if self._defined.get(found_name, False): out(indent, prefix, found_name, postfix) + elif hasattr(self, "app"): + return else: # a forward / circular declaration happens notice = ""