Skip to content

Commit a308cab

Browse files
authored
signal: annotate the private functions in _signaltools (#867)
2 parents 3676d74 + bae6b1e commit a308cab

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scipy-stubs/signal/_signaltools.pyi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,29 @@ class _ConvMeasureDict(TypedDict):
9494

9595
###
9696

97+
# undocumented
98+
@overload
99+
def _valfrommode(mode: L["valid"]) -> L[0]: ...
100+
@overload
101+
def _valfrommode(mode: L["same"]) -> L[1]: ...
102+
@overload
103+
def _valfrommode(mode: L["full"]) -> L[2]: ...
104+
@overload
105+
def _valfrommode(mode: str) -> int: ...
106+
107+
# undocumented
108+
@overload
109+
def _bvalfromboundary(boundary: L["fill", "pad"]) -> L[0]: ...
110+
@overload
111+
def _bvalfromboundary(boundary: L["symm", "symmetric"]) -> L[4]: ...
112+
@overload
113+
def _bvalfromboundary(boundary: L["wrap", "circular"]) -> L[8]: ...
114+
@overload
115+
def _bvalfromboundary(boundary: L["reflect"]) -> L[16]: ...
116+
@overload
117+
def _bvalfromboundary(boundary: str) -> int: ...
118+
119+
#
97120
@overload
98121
def choose_conv_method(
99122
in1: onp.ToIntND, in2: onp.ToIntND, mode: onp.ConvolveMode = "full", measure: onp.ToFalse = False

0 commit comments

Comments
 (0)