I noticed this when looking at https://github.com/cool-RR/PySnooper/pull/86, at first I thought that was the problem. It seems the latest backport is https://pypi.org/project/pathlib2/