Skip to content

Made local type vars in stubs private #455

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 2 commits into from
Sep 15, 2014
Merged

Conversation

spkersten
Copy link
Contributor

I renamed the local type vars in the stubs to start with an underscore.

Resolves #452.

@spkersten spkersten changed the title Made local type vars in typing.py stubs private Made local type vars in stubs private Sep 14, 2014
@JukkaL
Copy link
Collaborator

JukkaL commented Sep 15, 2014

It's still useful -- thanks for fixing these! Some modules will want to define type variables that should be visible outside the module, and we can use an underscore to distinguish those that should not be exported.

JukkaL added a commit that referenced this pull request Sep 15, 2014
Made local type vars in stubs private
@JukkaL JukkaL merged commit 51b2d7d into python:master Sep 15, 2014
@spkersten spkersten deleted the privstub452 branch September 15, 2014 19:49
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.

Rename local definitions in stubs (such as T) to use underscores (_T)
2 participants