Skip to content

Commit efaedc1

Browse files
committed
Fix linter issues
1 parent 9990855 commit efaedc1

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

python-property/circle_v4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from time import sleep
22

3+
34
class Circle:
45
def __init__(self, radius):
56
self.radius = radius

python-property/circle_v5.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from time import sleep
22

3+
34
class Circle:
45
def __init__(self, radius):
56
self.radius = radius

python-property/circle_v6.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from functools import cached_property
22
from time import sleep
33

4+
45
class Circle:
56
def __init__(self, radius):
67
self.radius = radius

python-property/circle_v7.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from functools import cache
22
from time import sleep
33

4+
45
class Circle:
56
def __init__(self, radius):
67
self.radius = radius
78

89
@property
910
@cache
1011
def diameter(self):
11-
sleep(0.5) # Simulate a costly computation
12+
sleep(0.5) # Simulate a costly computation
1213
return self.radius * 2

0 commit comments

Comments
 (0)