This would make the checker more friendly for 3rd-party code. For example,
In remotefilelog/x.py, it may have:
from . import shallowutils
This triggers "direct symbol import shallowutils from remotefilelog" today.
Since "shallowutils" itself is a module, the import should be allowed. This
patch makes it so.
It seems the warning is mainly to avoid the situation where other code could
wrap some symbols (typically by extensions.wrapfunction) after import, and
the existing code would still be using old symbols. But it's rare to have
an entire module replaced. So I think this change is reasonable.
This has to be updated to actually test the "direct symbol import".