Solve typing issues

This commit is contained in:
Adrian Chaves 2026-06-22 10:37:23 +02:00
parent 2a645b9487
commit e798e99f27
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class ResponseTypes:
self.classes: dict[str, type[Response]] = {}
self.mimetypes: MimeTypes = MimeTypes()
mimedata = get_data("scrapy", "mime.types")
assert mimedata is not None
self.mimetypes.readfp(StringIO(mimedata.decode("utf8")))
for mimetype, cls in self.CLASSES.items():
self.classes[mimetype] = load_object(cls)