Skip to content

Commit 8806606

Browse files
authored
Merge pull request #335 from henryiii/patch-1
fix(typing): Path-likes use truediv
2 parents 2678a5e + e607812 commit 8806606

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v4.6.4
2+
======
3+
4+
* #334: Correct ``SimplePath`` protocol to match ``pathlib``
5+
protocol for ``__truediv``.
6+
17
v4.6.3
28
======
39

importlib_metadata/_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SimplePath(Protocol):
3838
def joinpath(self) -> 'SimplePath':
3939
... # pragma: no cover
4040

41-
def __div__(self) -> 'SimplePath':
41+
def __truediv__(self) -> 'SimplePath':
4242
... # pragma: no cover
4343

4444
def parent(self) -> 'SimplePath':

0 commit comments

Comments
 (0)