(self, state)
| 282 | return d |
| 283 | |
| 284 | def __setstate__(self, state): |
| 285 | object.__setattr__(self, 'int', state['int']) |
| 286 | # is_safe was added in 3.7; it is also omitted when it is "unknown" |
| 287 | object.__setattr__(self, 'is_safe', |
| 288 | SafeUUID(state['is_safe']) |
| 289 | if 'is_safe' in state else SafeUUID.unknown) |
| 290 | |
| 291 | def __eq__(self, other): |
| 292 | if isinstance(other, UUID): |
no test coverage detected