Skip to content

Commit

Permalink
bug_fix: Add a dummy version of convolve
Browse files Browse the repository at this point in the history
This is to be able to export out `convolve` without needing the Cython
module `convolve.pyx` to have type stubs.
  • Loading branch information
pavyamsiri committed Oct 7, 2024
1 parent 9198b8e commit 909a1bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scipy-stubs/fftpack/pseudo_diffs.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# This module is not meant for public use and will be removed in SciPy v2.0.0.
# This stub simply re-exports the imported functions.
# TODO: Add type annotated dummy functions marked deprecated.
from . import convolve
from typing_extensions import deprecated

from ._pseudo_diffs import *

@deprecated("will be removed in SciPy v2.0.0")
def convolve(*args: object, **kwargs: object) -> object: ...

__all__ = ["cc_diff", "convolve", "cs_diff", "diff", "hilbert", "ihilbert", "itilbert", "sc_diff", "shift", "ss_diff", "tilbert"]

0 comments on commit 909a1bc

Please sign in to comment.