add copy to ZonedPluginRegistry

This commit is contained in:
2022-03-12 08:28:09 +01:00
parent edb264dbf5
commit b99421e8e7
3 changed files with 46 additions and 4 deletions

View File

@@ -1,4 +1,14 @@
from abc import abstractmethod
class PluginBase():
def __init__(self):
pass
@abstractmethod
def copy(self):
"""
Subclasses that use state must implement this method and return a new instance of themselves.
:return:
"""
return self