-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
create new package, or new sqlalchemy2-stubs version, that is essentially null typing #7555
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
Comments
in our last episode, @CaselIT said:
then @zzzeek said:
then @CaselIT said:
|
I dont understand. If I install package X which requires Y >= 2.0, it will install Y >= 2.0, im not familiar with what the error would be, unless they have their requirements pinned which is not the norm for development environments. Also, I'd like the stubs package to be installable, and upgradable in the 1.4 series if not also the 2.0 series, without it printing any errors. to my mind it seems much simpler to make a new package sqlalchemy-null-stubs and be done with it. advantages include:
disadvantages:
for the "new sqlalchemy2-stubs" version I'm not understanding yet how that would work so i need to understand that first. |
I would have to do some tests, but from memory I think pip does this. |
after some discussion with typing developers this approach won't be necessary, nor does it work in any case (type checkers always fall back to typeshed when the stubs are missing some module). When SQLAlchemy 2.0 is released, typeshed will remove SQLAlchemy stubs from their project which will resolve the issue for the downstream typecheckers. |
moving discussion from microsoft/pylance-release#840 (comment)
tasks:
remaining Q is if this is a new version of sqlalchemy2-stubs, how to ensure the correct version of the stubs is installed for the current SQLAlchemy version they have installed. I do not want the SQLAlchemy version itself to change.
So the requirement is:
The text was updated successfully, but these errors were encountered: