MCPcopy Create free account
hub / github.com/apify/crawlee-python / __hash__

Method __hash__

src/crawlee/_request.py:111–114  ·  view source on GitHub ↗

Return hash based on the model fields.

(self)

Source from the content-addressed store, hash-verified

109 return NotImplemented
110
111 def __hash__(self) -> int:
112 """Return hash based on the model fields."""
113 data = self.model_dump()
114 return hash(tuple(sorted(data.items())))
115
116
117user_data_adapter = TypeAdapter(UserData)

Callers

nothing calls this directly

Calls 2

hashFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected