mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
The new version of flake8 is linting f-strings (#1976)
* The new version of flake8 is linting f-strings * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
ba8b156fdc
commit
69171a9ac3
|
@ -108,6 +108,7 @@
|
||||||
* Heap
|
* Heap
|
||||||
* [Binomial Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/binomial_heap.py)
|
* [Binomial Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/binomial_heap.py)
|
||||||
* [Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/heap.py)
|
* [Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/heap.py)
|
||||||
|
* [Max Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/max_heap.py)
|
||||||
* [Min Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/min_heap.py)
|
* [Min Heap](https://github.com/TheAlgorithms/Python/blob/master/data_structures/heap/min_heap.py)
|
||||||
* Linked List
|
* Linked List
|
||||||
* [Circular Linked List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/circular_linked_list.py)
|
* [Circular Linked List](https://github.com/TheAlgorithms/Python/blob/master/data_structures/linked_list/circular_linked_list.py)
|
||||||
|
@ -582,6 +583,7 @@
|
||||||
* [Heap Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/heap_sort.py)
|
* [Heap Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/heap_sort.py)
|
||||||
* [I Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/i_sort.py)
|
* [I Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/i_sort.py)
|
||||||
* [Insertion Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/insertion_sort.py)
|
* [Insertion Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/insertion_sort.py)
|
||||||
|
* [Iterative Merge Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/iterative_merge_sort.py)
|
||||||
* [Merge Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/merge_sort.py)
|
* [Merge Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/merge_sort.py)
|
||||||
* [Odd Even Transposition Parallel](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_parallel.py)
|
* [Odd Even Transposition Parallel](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_parallel.py)
|
||||||
* [Odd Even Transposition Single Threaded](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_single_threaded.py)
|
* [Odd Even Transposition Single Threaded](https://github.com/TheAlgorithms/Python/blob/master/sorts/odd_even_transposition_single_threaded.py)
|
||||||
|
|
|
@ -11,7 +11,7 @@ class NearestNeighbour:
|
||||||
|
|
||||||
def __init__(self, img, dst_width: int, dst_height: int):
|
def __init__(self, img, dst_width: int, dst_height: int):
|
||||||
if dst_width < 0 or dst_height < 0:
|
if dst_width < 0 or dst_height < 0:
|
||||||
raise ValueError(f"Destination width/height should be > 0")
|
raise ValueError("Destination width/height should be > 0")
|
||||||
|
|
||||||
self.img = img
|
self.img = img
|
||||||
self.src_w = img.shape[1]
|
self.src_w = img.shape[1]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user