Skip to content

Commit 9588834

Browse files
committed
Complete scipy.fft._realtransforms.dct annotation
1 parent ef52113 commit 9588834

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

typings/scipy/fft/_realtransforms.pyi

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from _typeshed import Incomplete
1+
from typing import Literal
2+
23
from numpy import float64, generic
34
from numpy.typing import NDArray
45

@@ -47,13 +48,13 @@ def idstn(
4748
): ...
4849
def dct(
4950
x: NDArray[generic],
50-
type: int = 2,
51-
n: Incomplete | None = None,
51+
type: Literal[1, 2, 3, 4] = 2,
52+
n: int | None = None,
5253
axis: int = -1,
53-
norm: Incomplete | None = None,
54+
norm: Literal["backward", "ortho", "forward"] | None = None,
5455
overwrite_x: bool = False,
55-
workers: Incomplete | None = None,
56-
orthogonalize: Incomplete | None = None,
56+
workers: int | None = None,
57+
orthogonalize: bool | None = None,
5758
) -> NDArray[float64]: ...
5859
def idct(
5960
x,

0 commit comments

Comments
 (0)