Skip to content

Commit dcf7aa0

Browse files
committed
Small bug fixes
1 parent f631e89 commit dcf7aa0

21 files changed

Lines changed: 43 additions & 41 deletions

example_code/item_025_example_17.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 17")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
from typing import Dict, MutableMapping
2323

example_code/item_032_example_09.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 9")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
def careful_divide(a: float, b: float) -> float:
2323
"""Divides a by b.

example_code/item_036_example_09.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 9")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
from datetime import datetime
2323
from time import sleep

example_code/item_051_example_04.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 4")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
from dataclasses import dataclass
2323

example_code/item_051_example_05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 5")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
class RGB:
2323
def __init__(

example_code/item_056_example_11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 11")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
from dataclasses import dataclass
2323

example_code/item_056_example_12.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
print("Example 12")
20-
# Check types in this file with: python -m mypy <path>
20+
# Check types in this file with: python3 -m mypy <path>
2121

2222
from typing import Any, Final, Never
2323

example_code/item_059.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ def __repr__(self):
123123
)
124124

125125

126-
print("Example 8")
126+
print("Example 8")
127127
@property
128128
def quota(self):
129129
return self.max_quota - self.quota_consumed
130130

131131

132-
print("Example 9")
132+
print("Example 9")
133133
@quota.setter
134134
def quota(self, amount):
135135
delta = self.max_quota - amount

example_code/item_060.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _check_grade(value):
8181
raise ValueError("Grade must be between 0 and 100")
8282

8383

84-
print("Example 4")
84+
print("Example 4")
8585
@property
8686
def writing_grade(self):
8787
return self._writing_grade
@@ -208,7 +208,7 @@ def __set_name__(self, owner, name):
208208
self.internal_name = "_" + name
209209

210210

211-
print("Example 15")
211+
print("Example 15")
212212
def __get__(self, instance, instance_type):
213213
if instance is None:
214214
return self

example_code/item_064.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, column_name):
5454
self.internal_name = "_" + self.column_name
5555

5656

57-
print("Example 2")
57+
print("Example 2")
5858
def __get__(self, instance, instance_type):
5959
if instance is None:
6060
return self

0 commit comments

Comments
 (0)