Skip to content

Commit

Permalink
Merge pull request #335 from henryiii/patch-1
Browse files Browse the repository at this point in the history
fix(typing): Path-likes use truediv
  • Loading branch information
jaraco authored Aug 12, 2021
2 parents 2678a5e + e607812 commit 8806606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v4.6.4
======

* #334: Correct ``SimplePath`` protocol to match ``pathlib``
protocol for ``__truediv``.

v4.6.3
======

Expand Down
2 changes: 1 addition & 1 deletion importlib_metadata/_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 8806606

Please sign in to comment.