openzim / gutenberg

Scraper for downloading the entire ebooks repository of project Gutenberg
https://download.kiwix.org/zim/gutenberg
GNU General Public License v3.0
126 stars 37 forks source link

Fix peewee issues with pyright when updating a CharField and then saving it #200

Open benoit74 opened 10 months ago

benoit74 commented 10 months ago

When updating an ORM object (e.g. book.html_etag = etag), #191 had to add # type: ignore hint because pyright was complaining that a str cannot be used to set a CharField

This is clearly a peewee issue, maybe linked to the fact that we are using an old version.

To be fixed / reported upstream if not already fixed.