Skip to content

Commit 01be30f

Browse files
committed
Typo
1 parent f2d4971 commit 01be30f

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

05_collections/01-threadsafe-queue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
import threading
23
from queue import Queue
34

45
__doc__ = """Queue is designed to be thread-safe

05_collections/04-default-dict.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def __call__(self):
3939
print(dd['cats']())
4040

4141

42-
43-
4442
if __name__ == '__main__':
4543
"""
4644
Choose one of examples

05_collections/06-counter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from collections import Counter
22

33
__doc__ = """Counter is a dict subclass for counting hashable objects.
4-
Counters can be added
5-
Negative counts are being fixed on every operation
4+
Counters can be added
5+
Negative counts are being fixed on every operation
66
"""
77

88
text = "This is a sample text. It is short and simple. This text contains some words that we will count."

05_collections/07-chain-map.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
__doc__ = """ChainMap is a dictionary-like class for creating a single view of multiple mappings.
55
ChainMap is a dictionary-like class for creating a single view of multiple mappings.
66
Since it's view, all changes are reflected in the underlying mappings
7-
87
"""
98

109
local_vars = {'a': 1, 'b': 2}

06_class/05-properties.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def fahrenheit(self) -> float:
6464
def fahrenheit(self, value: float):
6565
self._celsius = (value - 32) * 5 / 9
6666

67+
6768
t = Temperature()
6869
t.celsius = 20
6970
print(t.celsius)

06_class/09-multiple01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ def __init__(self, x=0, y=0, z=0):
3333
print(f"child.get() = {child.get()}")
3434
# Called LeftBase.get(), no matter how many times we call child.get()
3535
# Lookup order is LeftBase, RightBase, Child
36-
# When the argument is found, we return it and never lookin further
36+
# When the argument is found, we return it and never looking further
3737

3838

0 commit comments

Comments
 (0)