Problem Description
Links are not working when a class is included in __all__.
Steps to reproduce the behavior:
Create the following files:
test_package/client.py
from test_package.models import Data
class Client:
def get_data(self) -> Data:
return Data()
test_package/models/init.py
from test_package.models.data import Data
__all__ = [
"Data"
]
test_package/models/data.py
Run pdoc test_package
Notice the link to the Data class is not present.

The link works fine if you remove the contents of test_package/models/init.py and change the import to from test_package.models.data import Data.
System Information
pdoc: 14.4.0
Python: 3.11.3
Platform: Windows-10-10.0.22621-SP0
Possible fix
If render_helpers.linkify is changed to what is in this PR, then it displays the link properly (it also removes the .data path from the import

Problem Description
Links are not working when a class is included in
__all__.Steps to reproduce the behavior:
Create the following files:
test_package/client.py
test_package/models/init.py
test_package/models/data.py
Run
pdoc test_packageNotice the link to the

Dataclass is not present.The link works fine if you remove the contents of test_package/models/init.py and change the import to
from test_package.models.data import Data.System Information
Possible fix
If
render_helpers.linkifyis changed to what is in this PR, then it displays the link properly (it also removes the.datapath from the import