mirror of https://github.com/scrapy/scrapy.git
Solve typing issues
This commit is contained in:
parent
2a645b9487
commit
e798e99f27
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue