You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a strange issue with a false positive error.
I have a typical Python3 project with setup.py and the package directory, with all modules inside and, obviously, the __init__.py file.
Whenever I try to import a sibling module, in the form of from . import module, I got the error No parent module -- cannot perform relative import. If things are imported from the module in the form of from .module import func, everything is fine.
From the logs I can see that the error is obtained by pycodestyle. However, I tried to run the tool from the shell, and the error is not shown.
I am using NeoVim with LanguageClient-neovim, if it could be relevant.
The text was updated successfully, but these errors were encountered:
I am having a strange issue with a false positive error.
I have a typical Python3 project with
setup.py
and the package directory, with all modules inside and, obviously, the__init__.py
file.Whenever I try to import a sibling module, in the form of
from . import module
, I got the errorNo parent module -- cannot perform relative import
. If things are imported from the module in the form offrom .module import func
, everything is fine.From the logs I can see that the error is obtained by
pycodestyle
. However, I tried to run the tool from the shell, and the error is not shown.I am using NeoVim with LanguageClient-neovim, if it could be relevant.
The text was updated successfully, but these errors were encountered: