We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f47b07 + b78348e commit 24c6cc8Copy full SHA for 24c6cc8
patterns/creational/prototype.py
@@ -29,7 +29,7 @@ def __init__(self, value: str = "default", **attrs: Any) -> None:
29
self.value = value
30
self.__dict__.update(attrs)
31
32
- def clone(self, **attrs: Any) -> None:
+ def clone(self, **attrs: Any) -> "Prototype":
33
"""Clone a prototype and update inner attributes dictionary"""
34
# Python in Practice, Mark Summerfield
35
# copy.deepcopy can be used instead of next line.
0 commit comments