m_strat.api.project_management.wrappers
1from abc import ABC, abstractmethod 2 3 4class Serializable(ABC): 5 """(Potentially Legacy) makes a class have default save and load methods""" 6 7 @classmethod 8 @abstractmethod 9 def file_type(self): 10 """The file type that will be generated on save""" 11 pass 12 13 @abstractmethod 14 def save(self): 15 """IO write to file/stream""" 16 pass 17 18 @abstractmethod 19 def load(self): 20 """load from file/stream applying state to the current object""" 21 pass
class
Serializable(abc.ABC):
5class Serializable(ABC): 6 """(Potentially Legacy) makes a class have default save and load methods""" 7 8 @classmethod 9 @abstractmethod 10 def file_type(self): 11 """The file type that will be generated on save""" 12 pass 13 14 @abstractmethod 15 def save(self): 16 """IO write to file/stream""" 17 pass 18 19 @abstractmethod 20 def load(self): 21 """load from file/stream applying state to the current object""" 22 pass
(Potentially Legacy) makes a class have default save and load methods
@classmethod
@abstractmethod
def
file_type(self):
8 @classmethod 9 @abstractmethod 10 def file_type(self): 11 """The file type that will be generated on save""" 12 pass
The file type that will be generated on save