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
from .controller1 import ControllerOne
from .controller2 import ControllerTwo
And inside controller1.py i want to use ControllerTwo.
So, if i write in controller1.py
from controllers import ControllerTwo
it will be a circular import, but if I write something like
from controllers.controller2 import ControllerTwo
It will work.
So, I want to restrict in some files import some modules "in short way" to avoid circular import. But outside controllers - any files can import any controller in short way
Is it possible with your plugin to do somethibg like it? Could you consider such functionality for yourself?
Thanks for any reply!
The text was updated successfully, but these errors were encountered:
I like this idea for neatness - we do the same kind of thing within Django. But I think the request is too complicated for this plugin. For fine-grained import rules, you can use Import Linter.
Description
Thanks for your library!
For me and my command it will be nice to have possibility to import some local files in a certain way.
For example, I have
In
__init__.py
i writeAnd inside
controller1.py
i want to useControllerTwo
.So, if i write in
controller1.py
it will be a circular import, but if I write something like
It will work.
So, I want to restrict in some files import some modules "in short way" to avoid circular import. But outside controllers - any files can import any controller in short way
Is it possible with your plugin to do somethibg like it? Could you consider such functionality for yourself?
Thanks for any reply!
The text was updated successfully, but these errors were encountered: