(self, value: t.Any)
| 155 | return value |
| 156 | |
| 157 | def quote(self, value: t.Any) -> str: |
| 158 | if not isinstance(value, (str, bytes)): |
| 159 | value = str(value) |
| 160 | if isinstance(value, bytes): |
| 161 | value = value.decode() |
| 162 | |
| 163 | if self == Operator.reserved or self == Operator.fragment: |
| 164 | return self._only_quote_unquoted_characters(value) |
| 165 | return self._always_quote(value) |
| 166 | |
| 167 | @staticmethod |
| 168 | def from_string(s: str) -> "Operator": |
no test coverage detected