[New-bugs-announce] [issue43958] Importlib.metadata docs claim PackagePath is a Path subclass
report at bugs.python.org
Tue Apr 27 15:25:40 EDT 2021
New submission from Paul Moore <p.f.moore at gmail.com>:
The importlib.metadata documentation states that the PackagePath class is "a pathlib.Path derived object". This isn't true - it's a PurePath subclass, and in particular it does not have a resolve() method. In fact, it has an undocumented custom locate() method that converts it into a Path object.
I propose changing the documentation to make it clear that it is a PurePath subclass, and explicitly documenting the locate() method.
assignee: docs at python
nosy: docs at python, paul.moore
title: Importlib.metadata docs claim PackagePath is a Path subclass
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce