To ignore a particular import which should be allowed unconditionally, use the tach-ignore comment directive.

# tach-ignore
from core.main import private_function

The directive can also be specific about the import to ignore, which is particularly useful when importing multiple packages.

# tach-ignore private_function
from core.main import private_function, public_function

Note: Names given to tach-ignore should match the alias as it is used in the subsequent import line, not the full module path from the project root.