Skip to content

Commit bccdf1a

Browse files
committed
signal: complete _max_len_seq[_inner].*
1 parent 12dd0a8 commit bccdf1a

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

scipy-stubs/signal/_max_len_seq.pyi

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
from scipy._typing import Untyped, UntypedArray
1+
from typing import Final
2+
3+
import numpy as np
4+
import optype.numpy as onp
25

36
__all__ = ["max_len_seq"]
47

8+
_mls_taps: Final[dict[int, list[int]]] = ...
9+
510
def max_len_seq(
6-
nbits: int,
7-
state: Untyped | None = None,
8-
length: int | None = None,
9-
taps: Untyped | None = None,
10-
) -> tuple[UntypedArray, UntypedArray]: ...
11+
nbits: onp.ToJustInt,
12+
state: onp.ToInt1D | None = None,
13+
length: onp.ToJustInt | None = None,
14+
taps: onp.ToJustInt1D | None = None,
15+
) -> tuple[onp.Array1D[np.int8], onp.Array1D[np.int8]]: ...
+11
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
import numpy as np
2+
import optype.numpy as onp
3+
14
__pythran__: tuple[str, str] = ...
5+
6+
def _max_len_seq_inner(
7+
taps: onp.Array1D[np.intp],
8+
state: onp.Array1D[np.int8],
9+
nbits: int | np.intp,
10+
length: int | np.intp,
11+
out: onp.Array1D[np.int8],
12+
) -> onp.Array1D[np.int8]: ...

0 commit comments

Comments
 (0)