Skip to content

Commit 712825e

Browse files
committed
Fix linter issues
1 parent 5c44e38 commit 712825e

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

python-doctest/fizz_buzz.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Replace numbers that are divisible by 3 with "fizz"
22
def fizz_buzz(numbers):
33
"""Implement the Fizz buzz game.
4-
4+
55
>>> fizz_buzz([3, 6, 9, 12])
66
['fizz', 'fizz', 'fizz', 'fizz']
77
"""
88

9+
910
# # Replace numbers that are divisible by 3 with "fizz"
1011
# def fizz_buzz(numbers):
1112
# """Implement the Fizz buzz game.
12-
13+
1314
# >>> fizz_buzz([3, 6, 9, 12])
1415
# ['fizz', 'fizz', 'fizz', 'fizz']
1516
# """
@@ -25,7 +26,7 @@ def fizz_buzz(numbers):
2526
# Replace numbers that are divisible by 5 with "buzz"
2627
# def fizz_buzz(numbers):
2728
# """Implement the Fizz buzz game.
28-
29+
2930
# >>> fizz_buzz([3, 6, 9, 12])
3031
# ['fizz', 'fizz', 'fizz', 'fizz']
3132

@@ -46,13 +47,13 @@ def fizz_buzz(numbers):
4647
# Replace numbers that are divisible by 3 and 5 with "fizz buzz"
4748
# def fizz_buzz(numbers):
4849
# """Implement the Fizz buzz game.
49-
50+
5051
# >>> fizz_buzz([3, 6, 9, 12])
5152
# ['fizz', 'fizz', 'fizz', 'fizz']
5253

5354
# >>> fizz_buzz([5, 10, 20, 25])
5455
# ['buzz', 'buzz', 'buzz', 'buzz']
55-
56+
5657
# >>> fizz_buzz([15, 30, 45])
5758
# ['fizz buzz', 'fizz buzz', 'fizz buzz']
5859

python-doctest/identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def get_id(obj):
22
"""Return the identity of an object.
3-
3+
44
>>> get_id(1) # doctest: +ELLIPSIS
55
...
66
"""

python-doctest/printed_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def greet(name="World"):
22
"""Print a greeting to the screen.
3-
3+
44
>>> greet("Pythonista")
55
Hello, Pythonista!
66
>>> greet()

python-doctest/queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self):
77
88
>>> Queue()
99
Queue([])
10-
10+
1111
>>> numbers = Queue()
1212
>>> numbers
1313
Queue([])

python-doctest/sets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# @property
77
# def favorite_colors(self):
88
# """Return the user's favorite colors.
9-
9+
1010
# Usage examples:
1111
# >>> john = User("John", {"#797EF6", "#4ADEDE", "#1AA7EC"})
1212
# >>> john.favorite_colors
@@ -35,7 +35,7 @@
3535
class User:
3636
def __init__(self, name, favorite_colors):
3737
"""Initialize instances of User.
38-
38+
3939
Usage examples:
4040
>>> User("John", {"#797EF6", "#4ADEDE", "#1AA7EC"}) # doctest: +ELLIPSIS
4141
<sets.User object at 0x...>

0 commit comments

Comments
 (0)