diff --git a/CHANGES.rst b/CHANGES.rst index d4e66469..7d3227c8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +v4.6.4 +====== + +* #334: Correct ``SimplePath`` protocol to match ``pathlib`` + protocol for ``__truediv``. + v4.6.3 ====== diff --git a/importlib_metadata/_meta.py b/importlib_metadata/_meta.py index dd68c429..37ee43e6 100644 --- a/importlib_metadata/_meta.py +++ b/importlib_metadata/_meta.py @@ -38,7 +38,7 @@ class SimplePath(Protocol): def joinpath(self) -> 'SimplePath': ... # pragma: no cover - def __div__(self) -> 'SimplePath': + def __truediv__(self) -> 'SimplePath': ... # pragma: no cover def parent(self) -> 'SimplePath':