mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +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:
@ -80,10 +80,7 @@ class FFT:
|
||||
|
||||
# Discrete fourier transform of A and B
|
||||
def __dft(self, which):
|
||||
if which == "A":
|
||||
dft = [[x] for x in self.polyA]
|
||||
else:
|
||||
dft = [[x] for x in self.polyB]
|
||||
dft = [[x] for x in self.polyA] if which == "A" else [[x] for x in self.polyB]
|
||||
# Corner case
|
||||
if len(dft) <= 1:
|
||||
return dft[0]
|
||||
|
Reference in New Issue
Block a user