-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Final pass over the deprecated public modules #79
Final pass over the deprecated public modules #79
Conversation
Wow great, thanks for this! In the future you could avoid such conflicts by splitting it up by e.g. package. Just to be clear; I'm not saying you should split this one up or anything, but it's just something I've been trying to do myself 🤷🏻♂️ |
At this early development stage there's no need to worry about formalities too much. |
My earlier changes were mostly directed to fixing the failing stubtest, which has some unavoidable overlap with your work on the deprecations. |
Oh and quick little DRY idea I had in the case of deprecated classes, is to e.g.
I believe that this is "correct enough", at least as far as stubtest and pyright concerned |
That's a fair suggestion. I think I thought it would be too many PRs but in hindsight the monolithic nature of this PR is also a problem in and of itself. |
Stubbing out `__getattr__` may confuse type checkers and in the case of these two files is entirely unnecessary as they do not export anything anyway.
oh don't worry it about it; if this woould've been e.g. a |
Basically just copied the existing stubs and added the deprecated decorator.
2e19d35
to
6639e5d
Compare
Ah this is very helpful. Should cut down on the file size as well. I tried to shadow the inheritance structure at first but I got warnings about using deprecated classes from a lint so I ended up having to stub out every single method and inherited method as well. I really should have just tried what you just did though. |
Maybe it could help to have the deprecated And I spotted one or two deprecated |
This is to allow attribute access to not just be `None`.
It doesn't seem like you can inherit |
I believe it's a edit: it's a |
I kinda like your commit message style btw; maybe I'll adopt it here myself 🤔 |
Thanks! Although I am not really too consistent with it. I mostly got it from looking at other repos, so I don't have a good grasp of the exact style. |
Ready to merge? |
Should be all good now. |
OK great, thanks a lot @pavyamsiri ! |
This should fully close issue #48. See the list at the end of the comment to see all of the modules that are public but are going to be deprecated. I found them by looking at the top most comment that says that they will be deprecated in v2.0.0 in the actual
scipy
git repo. Tell me if I should just add the list to my original issue instead.This PR should address the rest of the modules not stubbed out by #54.
Problems with merging
It seems that @jorenham has already tried to stub out some of the deprecated modules already so there are conflicts that need to be addressed.
List of all deprecated public modules
There are 109 such modules in total.
signal.ltisys
signal.spectral
signal.waveforms
signal.bsplines
signal.fir_filter_design
signal.signaltools
signal.wavelets
signal.lti_conversion
signal.filter_design
signal.windows.windows
sparse.coo
sparse.data
sparse.sparsetools
sparse.dok
sparse.csr
sparse.compressed
sparse.lil
sparse.spfuncs
sparse.extract
sparse.base
sparse.sputils
sparse.construct
sparse.bsr
sparse.dia
sparse.csc
sparse.linalg.interface
sparse.linalg.matfuncs
sparse.linalg.dsolve
sparse.linalg.eigen
sparse.linalg.isolve
constants.codata
constants.constants
interpolate.fitpack2
interpolate.dfitpack
interpolate.fitpack
interpolate.polyint
interpolate.interpolate
interpolate.ndgriddata
interpolate.rbf
optimize.linesearch
optimize.minpack
optimize.slsqp
optimize.tnc
optimize.cobyla
optimize.optimize
optimize.lbfgsb
optimize.zeros
optimize.minpack2
optimize.nonlin
optimize.moduleTNC
linalg.matfuncs
linalg.decomp_lu
linalg.decomp_svd
linalg.decomp_qr
linalg.decomp_schur
linalg.decomp
linalg.basic
linalg.misc
linalg.special_matrices
linalg.decomp_cholesky
odr.models
odr.odrpack
misc.common
misc.doccer
fftpack.realtransforms
fftpack.helper
fftpack.pseudo_diffs
fftpack.basic
io.idl
io.mmio
io.harwell_boeing
io.netcdf
io.matlab.mio_utils
io.matlab.mio4
io.matlab.mio5_params
io.matlab.mio
io.matlab.mio5_utils
io.matlab.streams
io.matlab.byteordercodes
io.matlab.mio5
io.matlab.miobase
io.arff.arffread
stats.kde
stats.morestats
stats.mvn
stats.mstats_extras
stats.biasedurn
stats.stats
stats.mstats_basic
ndimage.morphology
ndimage.fourier
ndimage.interpolation
ndimage.filters
ndimage.measurements
integrate.vode
integrate.dop
integrate.odepack
integrate.quadpack
integrate.lsoda
special.specfun
special.add_newdocs
special.basic
special.spfun_stats
special.sf_error
special.orthogonal
spatial.qhull
spatial.kdtree
spatial.ckdtree
spatial.transform.rotation