Skip to content

Commit c20c62a

Browse files
committed
More fixes
1 parent 42658d6 commit c20c62a

File tree

6 files changed

+7
-2
lines changed

6 files changed

+7
-2
lines changed

python-property/circle_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def _del_radius(self):
1818
fget=_get_radius,
1919
fset=_set_radius,
2020
fdel=_del_radius,
21-
doc="The radius property."
21+
doc="The radius property.",
2222
)

python-property/circle_v8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
logging.basicConfig(
44
format="%(asctime)s: %(message)s",
55
level=logging.INFO,
6-
datefmt="%H:%M:%S"
6+
datefmt="%H:%M:%S",
77
)
88

9+
910
class Circle:
1011
def __init__(self, radius):
1112
self._msg = '"radius" was %s. Current value: %s'

python-property/currency_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CENTS_PER_UNIT = 100
22

3+
34
class Currency:
45
def __init__(self, units, cents):
56
self._total_cents = units * CENTS_PER_UNIT + cents

python-property/persons.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def name(self, value):
1212

1313
# Person implementation...
1414

15+
1516
class Employee(Person):
1617
@property
1718
def name(self):

python-property/point_v3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
class WriteCoordinateError(Exception):
22
pass
33

4+
45
class Point:
56
def __init__(self, x, y):
67
self._x = x

python-property/point_v5.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def __set__(self, instance, value):
1212
except ValueError:
1313
raise ValueError(f'"{self._name}" must be a number') from None
1414

15+
1516
class Point:
1617
x = Coordinate()
1718
y = Coordinate()

0 commit comments

Comments
 (0)