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
{{ message }}
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Currently, if a package is detected with _localimport._deduce() and conflicts with a module that is already imported, that module is removed from sys.modules temporarily (and moved to _localimport.state['disables']).
However, there might be a root.foo and root.bar in the global site, but only root.bar in the local site. The current approach simply gets rid of root and its submodules alltogether, but it would only need to disableroot.bar.
Currently, if a package is detected with
_localimport._deduce()and conflicts with a module that is already imported, that module is removed fromsys.modulestemporarily (and moved to_localimport.state['disables']).However, there might be a
root.fooandroot.barin the global site, but onlyroot.barin the local site. The current approach simply gets rid ofrootand its submodules alltogether, but it would only need to disableroot.bar.