Indicate a string value in pydeck Parameters ---------- value : str Value of the string
| 5 | |
| 6 | @total_ordering |
| 7 | class String(PydeckType): |
| 8 | """Indicate a string value in pydeck |
| 9 | |
| 10 | Parameters |
| 11 | ---------- |
| 12 | |
| 13 | value : str |
| 14 | Value of the string |
| 15 | """ |
| 16 | |
| 17 | def __init__(self, s: str, quote_type: str = ""): |
| 18 | self.value = f"{quote_type}{s}{quote_type}" |
| 19 | |
| 20 | def __lt__(self, other): |
| 21 | return str(self) < str(other) |
| 22 | |
| 23 | def __eq__(self, other): |
| 24 | return str(self) == str(other) |
| 25 | |
| 26 | def __repr__(self): |
| 27 | return self.value |
no outgoing calls
searching dependent graphs…