I found at my workplace a package called bar
and it seems that it is installed and within same package imports use this installed package instead of modules.
app structure:
-bar
---bar
------__init__.py
------foo.py
-pyproject.toml
Installing the package
pip install .
from bar.foo import baz
What are pros and cons of this solution? Why it was developed that way?