Skip to content

what is typeshed's approach for libraries that radically change their API across major versions? #1022

Answered by Akuli
zzzeek asked this question in Q&A
Discussion options

You must be logged in to vote

Part 1: We just release stubs for the latest version. If someone is stuck on mypackage version 3.0, they can continue using types-mypackage==3.0.x. Any changes in typeshed will lead to automatically releasing types-mypackage==4.0.x.

Edit: To clarify, if mypackage 4.x comes with type annotations, typeshed will be stuck on 3.x for 6 months or so, and after that, the stubs will be removed from typeshed. After that, they will still be available on pypi.

Part 2: SQLAlchemy 1.x stubs are a mess. There is at least:

  • types-sqlalchemy: maintained in typeshed, new, incomplete and mostly auto-generated
  • sqlalchemy-stubs: a mypy plugin and related stubs, in dropbox's github: https://github.com/dropbox…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@zzzeek
Comment options

@hauntsaninja
Comment options

@srittau
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

Answer selected by hauntsaninja
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants