mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
Update _erg_str.py
This commit is contained in:
parent
236fb56a54
commit
ba19cb107d
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ class StrMut(): # Inherits Str
|
|||
self.value = s
|
||||
def __repr__(self):
|
||||
return self.value.__repr__()
|
||||
def __str__(self):
|
||||
return self.value.__str__()
|
||||
def __hash__(self):
|
||||
return self.value.__hash__()
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, Str):
|
||||
return self.value == other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue