Skip to content

Commit 75d3ec0

Browse files
committedFeb 7, 2022
Fixed linter errors
1 parent 33b0199 commit 75d3ec0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎patterns/creational/lazy_evaluation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def lazy_property2(fn):
3939
"""
4040
A lazy property decorator.
4141
42-
The function decorated is called the first time to retrieve the result and then that calculated result is used the next
43-
time you access the value.
42+
The function decorated is called the first time to retrieve the result and
43+
then that calculated result is used the next time you access the value.
4444
"""
4545
attr = "_lazy__" + fn.__name__
4646

‎patterns/other/graph_search.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ def find_shortest_path_bfs(self, start, end):
5858
:type end: str or int
5959
6060
:returns queue_path_to_end, dist_to[end]: A list of nodes
61-
representing the shortest path from `start` to `end`, and a dictionary mapping each node in the graph (except for `start`) with its distance from it
62-
(in terms of hops). If no such path exists, returns an empty list and an empty dictionary instead.
61+
representing the shortest path from `start` to `end`, and a dictionary
62+
mapping each node in the graph (except for `start`) with its distance from it
63+
(in terms of hops). If no such path exists, returns an empty list and an empty
64+
dictionary instead.
6365
"""
6466
queue = [start]
6567
dist_to = {start: 0}

0 commit comments

Comments
 (0)
Please sign in to comment.