mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
fix(mypy): type annotations for cipher algorithms (#4306)
* fix(mypy): type annotations for cipher algorithms * Update mypy workflow to include cipher directory * fix: mypy errors in hill_cipher.py * fix build errors
This commit is contained in:
@ -13,7 +13,7 @@ import math
|
||||
import random
|
||||
|
||||
|
||||
def rsafactor(d: int, e: int, N: int) -> [int]:
|
||||
def rsafactor(d: int, e: int, N: int) -> list[int]:
|
||||
"""
|
||||
This function returns the factors of N, where p*q=N
|
||||
Return: [p, q]
|
||||
|
Reference in New Issue
Block a user