Skip to content

Commit 6aca35f

Browse files
committed
Fix missing return type
1 parent 45bc5f6 commit 6aca35f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source-code/typing/typed_duck_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def make_sound(self) -> None:
2020
print('ring-ring')
2121

2222

23-
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int):
23+
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int) -> None:
2424
for _ in range(nr_repeats):
2525
sound_maker.make_sound()
2626

source-code/typing/typed_duck_typing_false_positive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def make_sound(self) -> None:
2020
print('ring-ring')
2121

2222

23-
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int):
23+
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int) -> None:
2424
for _ in range(nr_repeats):
2525
sound_maker.make_sound()
2626

source-code/typing/typed_duck_typing_incorrect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def make_sound(self) -> None:
2020
print('ring-ring')
2121

2222

23-
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int):
23+
def sound_repeater(sound_maker: SoundMaker, nr_repeats: int) -> None:
2424
for _ in range(nr_repeats):
2525
sound_maker.make_sound()
2626

0 commit comments

Comments
 (0)