Closed Gallaecio closed 4 years ago
Hm, I was thinking about making their support experimental in itemloaders, not in itemadapter
I agree with @kmike, dataclass objects do work for all intended purposes within itemadapter
. The problem in https://github.com/scrapy/itemloaders/issues/14 is about creating objects without all fields being present, but ItemAdapter
doesn't create items internally.
Makes sense.
I guess we can close this one, right?
At leas there is a warning
in the current documentation..
Yeah, I believe https://github.com/scrapy/itemloaders/commit/7f288f016274adec1dbd0632cc9f73637fe9e17a#diff-caf2a6b8f4947d018f68893c695b5202R20 does the trick.
Suggested by @kmike during an internal meeting.
If we do this, we should also open a ticket to do something similar in Scrapy.