Upgrade pathlib for 2.6 support