New submission from Paul Moore <p.f.mo...@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@python
components: Documentation
messages: 392123
nosy: docs@python, paul.moore
priority: normal
severity: normal
status: open
title: Importlib.metadata docs claim PackagePath is a Path subclass
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43958>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to