Skip to content

Commit 840e5c7

Browse files
committed
Fix CI errors: use type keyword and fix line length
1 parent 2124d07 commit 840e5c7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

matrix/similar_matrices.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
from __future__ import annotations
3131

3232
from collections.abc import Sequence
33-
from typing import Any, TypeAlias
33+
from typing import Any
3434

3535
from sympy import Matrix, nsimplify
3636
from sympy.matrices.common import MatrixError
3737

3838
__all__ = ["are_similar_matrices"]
3939

4040

41-
MatrixLike: TypeAlias = Sequence[Sequence[Any]] | Matrix
41+
type MatrixLike = Sequence[Sequence[Any]] | Matrix
4242

4343

4444
def _as_square_matrix(matrix: MatrixLike, *, simplify_entries: bool) -> Matrix:
@@ -90,7 +90,9 @@ def _jordan_signature(matrix: Matrix) -> tuple[tuple[Any, tuple[int, ...]], ...]
9090
eigenvalue,
9191
tuple(sorted(block_sizes, reverse=True)),
9292
)
93-
for eigenvalue, block_sizes in sorted(summary.items(), key=lambda item: repr(item[0]))
93+
for eigenvalue, block_sizes in sorted(
94+
summary.items(), key=lambda item: repr(item[0])
95+
)
9496
)
9597

9698

0 commit comments

Comments
 (0)