Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Aug 24, 2024
1 parent 394aa53 commit 63b667a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/evalica/naive.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def pagerank_matrix(
if not matrix.shape[0]:
return np.zeros(0, dtype=np.float64)

p = cast(float, 1. / matrix.shape[0])
p = cast(float, 1. / matrix.shape[0]) # type: ignore[redundant-cast]

matrix = matrix.T
matrix[matrix.sum(axis=1) == 0] = p
Expand Down

0 comments on commit 63b667a

Please sign in to comment.