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

Stub versioning #3

Closed
JukkaL opened this issue Apr 13, 2015 · 3 comments
Closed

Stub versioning #3

JukkaL opened this issue Apr 13, 2015 · 3 comments

Comments

@JukkaL
Copy link
Contributor

JukkaL commented Apr 13, 2015

Several people have expressed interest in versioning stub files.

Here are some reasons:

  • A library maintainer is worried that stubs maintained by 3rd parties for his or her library will get out of date, and people will complain to the library maintainer instead of the one who maintains the stubs.
  • A new version of a library breaks compatibility with earlier versions and it's no longer possible to use the same stub with all version of the library in any meaningful way.
@vlasovskikh
Copy link
Member

TypeScript guys have created a set of tools for managing their stubs:

This is their contribution guide.

@matthiaskramm
Copy link
Contributor

I like the TypeScript approach of putting the version into the file name. If we do the same thing, we might have something like
typeshed/python3/dist-packages/numpy-1.8.2.pyi

@gvanrossum
Copy link
Member

Closing. We now have a policy for this.

rowillia added a commit to rowillia/typeshed that referenced this issue Dec 29, 2016
rowillia added a commit to rowillia/typeshed that referenced this issue Jan 11, 2017
rowillia added a commit to rowillia/typeshed that referenced this issue Jan 12, 2017
cocoatomo pushed a commit to cocoatomo/typeshed that referenced this issue Aug 30, 2018
AlexWaygood referenced this issue in AlexWaygood/typeshed Nov 24, 2021
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

4 participants