mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -31,7 +31,7 @@ class PolybiusCipher:
|
||||
>>> np.array_equal(PolybiusCipher().letter_to_numbers('u'), [4,5])
|
||||
True
|
||||
"""
|
||||
index1, index2 = np.where(self.SQUARE == letter)
|
||||
index1, index2 = np.where(letter == self.SQUARE)
|
||||
indexes = np.concatenate([index1 + 1, index2 + 1])
|
||||
return indexes
|
||||
|
||||
|
Reference in New Issue
Block a user