Page MenuHomeSoftware Heritage

init.py: switch to documented way of extending path
ClosedPublic

Authored by zack on Fri, Sep 27, 9:10 AM.

Details

Summary

make mypy 0.730 pass cleanly again

In addition to make mypy pass again, this is also the documented way of using
extend_path, so it's better/nicer to switch to it anyway.

Once this is accepted for this module, I will batch apply this change to all
other __init__.py around.

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

zack created this revision.Fri, Sep 27, 9:10 AM
ardumont accepted this revision.Fri, Sep 27, 9:43 AM
ardumont added a subscriber: ardumont.

Clearer.

This revision is now accepted and ready to land.Fri, Sep 27, 9:43 AM

Out of curiosity, I checked the docso might as well provide the link [1]

[1] https://docs.python.org/3.5/library/pkgutil.html

This revision was automatically updated to reflect the committed changes.