pycharm doesn't know which declaration to choose
Answered
I am creating a new version for class and my directories look like this
|pack
|--|__init__.py
|--|v2
|--|--|__init__.py
|--|v3
|--|--|__init__.py
both v2 and v3 have `MyClass` in them, and I import the new version.
from pack.v3 import MyClass
x = MyClass()
x.my_method()
when I try to access MyClass it knows this is from `v3` pycharm knows to send me to `v3` code, but when I try to access `my_method` in the editor, pycharm keeps asking which of the `my_method`s I want. That same problem also doesn't let the autocompletion work as it doesn't know where I want to autocomplete from.
Please sign in to leave a comment.
Hi Deanla! Unfortunately, I can't reproduce the problem locally - looks like some additional steps are required. Could you please create a ticket in our bug tracker an attach the simplified project there?