Skip to content

Commit 6f2b3ee

Browse files
committed
More typing fixes
1 parent 4fe3767 commit 6f2b3ee

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

coloraide/algebra.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4471,7 +4471,7 @@ def lu(
44714471
*,
44724472
permute_l: Literal[True],
44734473
p_indices: Literal[True] | Literal[False] | bool = False,
4474-
shape: Shape | None
4474+
shape: Shape | None = ...
44754475
) -> tuple[MatrixT[float], MatrixT[float]]:
44764476
...
44774477

@@ -4482,7 +4482,7 @@ def lu(
44824482
*,
44834483
permute_l: Literal[False] = False,
44844484
p_indices: Literal[True],
4485-
shape: Shape | None
4485+
shape: Shape | None = ...
44864486
) -> tuple[VectorT[int], MatrixT[float], MatrixT[float]]:
44874487
...
44884488

@@ -4493,7 +4493,7 @@ def lu(
44934493
*,
44944494
permute_l: Literal[False] = False,
44954495
p_indices: Literal[False] = False,
4496-
shape: Shape | None
4496+
shape: Shape | None = ...
44974497
) -> tuple[MatrixT[float], MatrixT[float], MatrixT[float]]:
44984498
...
44994499

@@ -4503,8 +4503,8 @@ def lu(
45034503
matrix: MatrixTLike[StrictNumber],
45044504
*,
45054505
permute_l: Literal[False] = False,
4506-
p_indices: bool,
4507-
shape: Shape | None
4506+
p_indices: bool = ...,
4507+
shape: Shape | None = ...
45084508
) -> (
45094509
tuple[MatrixT[float], MatrixT[float], MatrixT[float]] |
45104510
tuple[VectorT[int], MatrixT[float], MatrixT[float]]
@@ -4516,9 +4516,9 @@ def lu(
45164516
def lu(
45174517
matrix: MatrixTLike[StrictNumber],
45184518
*,
4519-
permute_l: bool,
4520-
p_indices: bool,
4521-
shape: Shape | None
4519+
permute_l: bool = ...,
4520+
p_indices: bool = ...,
4521+
shape: Shape | None = ...
45224522
) -> (
45234523
tuple[MatrixT[float], MatrixT[float]] |
45244524
tuple[MatrixT[float], MatrixT[float], MatrixT[float]] |
@@ -4533,7 +4533,7 @@ def lu(
45334533
*,
45344534
permute_l: Literal[True],
45354535
p_indices: Literal[True] | Literal[False] | bool = False,
4536-
shape: Shape | None
4536+
shape: Shape | None = ...
45374537
) -> tuple[TensorT[float], TensorT[float]]:
45384538
...
45394539

@@ -4544,7 +4544,7 @@ def lu(
45444544
*,
45454545
permute_l: Literal[False] = False,
45464546
p_indices: Literal[True],
4547-
shape: Shape | None
4547+
shape: Shape | None = ...
45484548
) -> tuple[MatrixT[int], TensorT[float], TensorT[float]]:
45494549
...
45504550

@@ -4555,7 +4555,7 @@ def lu(
45554555
*,
45564556
permute_l: Literal[False] = False,
45574557
p_indices: Literal[False] = False,
4558-
shape: Shape | None
4558+
shape: Shape | None = ...
45594559
) -> tuple[TensorT[float], TensorT[float], TensorT[float]]:
45604560
...
45614561

@@ -4565,8 +4565,8 @@ def lu(
45654565
matrix: TensorTLike[StrictNumber],
45664566
*,
45674567
permute_l: Literal[False] = False,
4568-
p_indices: bool,
4569-
shape: Shape | None
4568+
p_indices: bool = ...,
4569+
shape: Shape | None = ...
45704570
) -> (
45714571
tuple[TensorT[float], TensorT[float], TensorT[float]] |
45724572
tuple[MatrixT[int], TensorT[float], TensorT[float]]
@@ -4577,9 +4577,9 @@ def lu(
45774577
def lu(
45784578
matrix: TensorTLike[StrictNumber],
45794579
*,
4580-
permute_l: bool,
4581-
p_indices: bool,
4582-
shape: Shape | None
4580+
permute_l: bool = ...,
4581+
p_indices: bool = ...,
4582+
shape: Shape | None = ...
45834583
) -> (
45844584
tuple[TensorT[float], TensorT[float]] |
45854585
tuple[TensorT[float], TensorT[float], TensorT[float]] |
@@ -5188,7 +5188,7 @@ def svd(
51885188
@overload
51895189
def svd(
51905190
a: MatrixTLike[StrictNumber],
5191-
full_matrices: bool,
5191+
full_matrices: bool = ...,
51925192
compute_uv: Literal[True] = True,
51935193
) -> tuple[MatrixT[float], VectorT[float], MatrixT[float]]:
51945194
...
@@ -5197,8 +5197,8 @@ def svd(
51975197
@overload
51985198
def svd(
51995199
a: MatrixTLike[StrictNumber],
5200-
full_matrices: bool,
5201-
compute_uv: bool,
5200+
full_matrices: bool = ...,
5201+
compute_uv: bool = ...,
52025202
) -> tuple[MatrixT[float], VectorT[float], MatrixT[float]] | VectorT[float]:
52035203
...
52045204

@@ -5215,7 +5215,7 @@ def svd(
52155215
@overload
52165216
def svd(
52175217
a: TensorTLike[StrictNumber],
5218-
full_matrices: bool,
5218+
full_matrices: bool = ...,
52195219
compute_uv: Literal[True] = True
52205220
) -> tuple[TensorT[float], MatrixT[float] | TensorT[float], TensorT[float]]:
52215221
...
@@ -5224,8 +5224,8 @@ def svd(
52245224
@overload
52255225
def svd(
52265226
a: TensorTLike[StrictNumber],
5227-
full_matrices: bool,
5228-
compute_uv: bool
5227+
full_matrices: bool = ...,
5228+
compute_uv: bool = ...
52295229
) -> tuple[TensorT[float], MatrixT[float] | TensorT[float], TensorT[float]] | MatrixT[float] | TensorT[float]:
52305230
...
52315231

0 commit comments

Comments
 (0)