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
Fix cyclic dependency between 'utils' and '_compat'
The compat subpackage having an `__init__.py` created a cycle with the
introduction of pathlib compatibility tooling. The reason being that we
have...
utils -> _compat.path_compat
_compat.pip_compat -> utils
(fine on its own) plus
_compat -> _compat.pip_compat
which makes `utils -> _compat.path_compat` into a cycle.
This probably indicates some level of code smell -- the situation arises
because pip_compat and utils aren't very clearly defined as distinct --
but for now it's trivial to fix by just getting rid of the subpackage
`__init__.py` imports and making each of these pieces a standalone
module.
0 commit comments