mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08: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:
@@ -11,7 +11,7 @@ class NearestNeighbour:
|
||||
|
||||
def __init__(self, img, dst_width: int, dst_height: int):
|
||||
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.src_w = img.shape[1]
|
||||
|
||||
Reference in New Issue
Block a user