-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
ποΈ merge types-scipy-sparse
into scipy-stubs
#129
Comments
Good idea. Currently we talked about the first PR including: After the first PR we'll have a better idea of issues in the merger and we can plan ahead. |
Do you think that it would help if we defer the
The But if we decide to defer the generics, do you still think it would be needed? I think that the ideal scenario would be to achieve the same DRY result as your template-based approach through
Yea that makes sense. Sometimes I forget that premature optimization is the root of all evil. |
Okay, you're right. Since this is a big change we should aim at doing it as small as possible, but still in a way we can see how it will scale up. How about I add generic to the child class but only use it on a single method that isn't in I don't think I'll put a suggestion here and let me know what you think: In this approach, having the |
Yea that makes sense ππ»
You're right in saying that at the moment
NumPy does something similar with template-based code generation. They use a As I also mentioned in jorenham/unpy#61, I think that for any code-generation approach it is important to make it clear to the user that the code they're looking at is fully generated. Otherwise there's the risk of them submitting PR's that (only) change this generated code, instead of its source template. I also like numpy's approach of having the template in the same place as the source, so that it's easier to find it if you're looking for it, but forgot it's template-based (which, given my scatterbrain, is bound to happen to me, lol).
That seems like a good plan actually; kickstarting it in a dry manner with a (no offense) "quick-and-dirty" approach, and then gradually introducing |
I have some experience with See https://github.com/koxudaxi/datamodel-code-generator/ for an example of how it can be used in a python codegen context. |
Wow, I didn't know of I'll start working on a PR and we can continue refining the framework over there. |
How's it going @BarakKatzir ? |
Hi, @jorenham. I'm progressing a bit slowly due to deadlines at work (and a family vacation and a sick kid). |
π
I believe that basedpyright is configured to require If there are a lot of missing |
Ah yea there's quite a bit of tooling involved. But in the long run those should all save time. If there's anything I can help, then don't hesitate to ask :) |
types-scipy-sparse
merger π types-scipy-sparse
into scipy-stubs
@BarakKatzir Any updates on this @BarakKatzir? |
@BarakKatzir has been developing the
types-scipy-sparse
stub package forscipy.sparse
. A large portion appears to more complete that thescipy.sparse
stubbs inscipy-stubs
.I have talked with @BarakKatzir about joining forces, and we both agreed that gradually merging
types-scipy-sparse
intoscipy-stubs
is not only a good idea, but also a feasible one.@BarakKatzir, how about we could use this issue as central planning on how we can go about this? So e.g. how we can "chop it up" into PR's, and in which order we do so.
related:
scipy.sparse.linalg.LinearOperator
Β #69scipy.sparse
Β #100The text was updated successfully, but these errors were encountered: