(o: object)
| 220 | |
| 221 | |
| 222 | def _normalize_pure_object(o: object) -> tuple[str, int]: |
| 223 | _maybe_raise_nondeterministic( |
| 224 | "object() cannot be deterministically hashed. See " |
| 225 | "https://docs.dask.org/en/latest/custom-collections.html#implementing-deterministic-hashing " |
| 226 | "for more information." |
| 227 | ) |
| 228 | # Idempotent, but not deterministic. Make sure that the id is not reused. |
| 229 | _seen_objects.add(o) |
| 230 | return "object", id(o) |
| 231 | |
| 232 | |
| 233 | def _normalize_pickle(o: object) -> tuple: |
no test coverage detected
searching dependent graphs…