Skip to content

Add forgotten self for thirdparty #646

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

Merged
merged 1 commit into from
Oct 30, 2016
Merged

Conversation

elazarg
Copy link
Contributor

@elazarg elazarg commented Oct 30, 2016

Part of #638.

@@ -226,12 +226,12 @@ def get_provider(package_or_requirement: str) -> IResourceProvider: ...
def get_provider(package_or_requirement: Requirement) -> Distribution: ...

class IMetadataProvider:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is weird. Its source code really doesn't have 'self' parameters. I suppose this is implicitly using zope.Interfaces (but not explicitly -- in fact it seems it's just documentation at this point). I wonder if we should just remove these 'I' classes from this package in typeshed -- if anything explicitly references them, it probably won't work.

Maybe we should ask the pypa folks, and leave this file alone for now.

@gvanrossum gvanrossum merged commit 58d6034 into python:master Oct 30, 2016
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

Successfully merging this pull request may close these issues.

2 participants