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.
1 parent 5f47b07 commit b78348eCopy full SHA for b78348e
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