Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntryPoint.extras returns match objects and not the extras #369

Closed
jaraco opened this issue Feb 26, 2022 · 0 comments
Closed

EntryPoint.extras returns match objects and not the extras #369

jaraco opened this issue Feb 26, 2022 · 0 comments

Comments

@jaraco
Copy link
Member

jaraco commented Feb 26, 2022

>>> from importlib_metadata import EntryPoint
>>> ep = EntryPoint(name='foo', group='bar', value='package.module:attr [extra1, extra2]')
>>> ep.extras
[<re.Match object; span=(1, 7), match='extra1'>,
 <re.Match object; span=(9, 15), match='extra2'>]

extras should be a list of strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant