Autocomplete is incorrect with custom "path" module

Hello,

Regarding PyCharm 2020.2.3. I can't figure this out. It used to work just fine. If you have a custom *path.py* module, you can import that module but auto-completion will no longer work correctly. Executing the code is fine but auto-completion and syntax highlighting get wrecked.

Steps to Reproduce

  • Create a new project
  • Create a "path.py" module
  • From any other module within the project, import the custom path module
  • Autocompletion is now impossible and syntax warnings everywhere
  • Running the code is otherwise fine

Expected behavior is a correct completion without any syntax warnings.

PyCharm is excellent <3

0
1 comment

Hi, 

It is not clear if completion is broken only for path or for any other module as well? Anyway, reproduced the issue, completion is broken only for path in my case: https://youtrack.jetbrains.com/issue/PY-44918

0

Please sign in to leave a comment.