mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +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:
@ -136,12 +136,12 @@ class BinomialHeap:
|
||||
|
||||
# Empty heaps corner cases
|
||||
if other.size == 0:
|
||||
return
|
||||
return None
|
||||
if self.size == 0:
|
||||
self.size = other.size
|
||||
self.bottom_root = other.bottom_root
|
||||
self.min_node = other.min_node
|
||||
return
|
||||
return None
|
||||
# Update size
|
||||
self.size = self.size + other.size
|
||||
|
||||
|
Reference in New Issue
Block a user