Closed
Description
-
The first problem is almost certainly a bug, the annotation for
__getitem__
says it returns astr
but it returnsNone
if the metadata doesn't exist. https://github.com/python/importlib_metadata/blob/v4.11.2/importlib_metadata/_meta.py#L15For example:
from importlib.metadata import metadata print(metadata("pip")["asdfg"] is None) # True
(second problem moved to #374).
Metadata
Metadata
Assignees
Labels
No labels