fsspec / universal_pathlib

pathlib api extended to use fsspec backends
MIT License
240 stars 42 forks source link

DEP: Ensure typing_extension is dependency for earlier python versions #290

Open mgxd opened 15 hours ago

mgxd commented 15 hours ago

The following guard hits a ModuleNotFoundError on a fresh 3.10 environment

https://github.com/fsspec/universal_pathlib/blob/5486fa3c30cbb3f79637252d980994a1d738b0f5/upath/core.py#L22-L25

This PR adds typing_extension as an optional dependency for earlier Python versions.