We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bac69b commit 899a25cCopy full SHA for 899a25c
1 file changed
src/crawlee/_request.py
@@ -92,6 +92,15 @@ def __iter__(self) -> Iterator[str]: # type: ignore
92
def __len__(self) -> int:
93
return len(self.__pydantic_extra__)
94
95
+ def __eq__(self, other: object) -> bool:
96
+ if isinstance(other, BaseModel):
97
+ return super().__eq__(other)
98
+
99
+ if isinstance(other, dict):
100
+ return self.model_dump() == other
101
102
+ return NotImplemented
103
104
105
user_data_adapter = TypeAdapter(UserData)
106
0 commit comments