structure saas with tools
This commit is contained in:
20
.venv/lib/python3.10/site-packages/graphviz/copying.py
Normal file
20
.venv/lib/python3.10/site-packages/graphviz/copying.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""Create new instance copies with cooperative ``super()`` calls."""
|
||||
|
||||
__all__ = ['CopyBase']
|
||||
|
||||
|
||||
class CopyBase:
|
||||
"""Create new instance copies with cooperative ``super()`` calls."""
|
||||
|
||||
def copy(self):
|
||||
"""Return a copied instance of the object.
|
||||
|
||||
Returns:
|
||||
An independent copy of the current object.
|
||||
"""
|
||||
kwargs = self._copy_kwargs()
|
||||
return self.__class__(**kwargs)
|
||||
|
||||
def _copy_kwargs(self, **kwargs):
|
||||
"""Return the kwargs to create a copy of the instance."""
|
||||
return kwargs
|
||||
Reference in New Issue
Block a user