parent
8bf8dc8946
commit
1167f016fe
@ -1,16 +1,16 @@
|
||||
#from shapeless import shapeless
|
||||
# #from shapeless import shapeless
|
||||
|
||||
#@shapeless
|
||||
class ErrorArtifact:
|
||||
def __init__(
|
||||
self,
|
||||
value
|
||||
):
|
||||
self.value = value
|
||||
# #@shapeless
|
||||
# class ErrorArtifact:
|
||||
# def __init__(
|
||||
# self,
|
||||
# value
|
||||
# ):
|
||||
# self.value = value
|
||||
|
||||
def __add__(self, other):
|
||||
return ErrorArtififact(self.value + other.value)
|
||||
# def __add__(self, other):
|
||||
# return ErrorArtififact(self.value + other.value)
|
||||
|
||||
def to_text(self) -> str:
|
||||
return self.value
|
||||
# def to_text(self) -> str:
|
||||
# return self.value
|
||||
|
Loading…
Reference in new issue