Skip to content

Commit 24c6cc8

Browse files
authored
Merge pull request faif#378 from g-paras/stubs
Closes faif#377: No return value expeced 🐛
2 parents 5f47b07 + b78348e commit 24c6cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/creational/prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, value: str = "default", **attrs: Any) -> None:
2929
self.value = value
3030
self.__dict__.update(attrs)
3131

32-
def clone(self, **attrs: Any) -> None:
32+
def clone(self, **attrs: Any) -> "Prototype":
3333
"""Clone a prototype and update inner attributes dictionary"""
3434
# Python in Practice, Mark Summerfield
3535
# copy.deepcopy can be used instead of next line.

0 commit comments

Comments
 (0)