prevent flake8 errors from comments looking like type annotations

pull/754/head
Mike Fährmann 4 years ago
parent 2d6724180b
commit 09cc9dbec0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -108,11 +108,11 @@ class TumblrExtractor(Extractor):
del photo["alt_sizes"] del photo["alt_sizes"]
yield self._prepare_image(photo["url"], post) yield self._prepare_image(photo["url"], post)
url = post.get("audio_url") # type: "audio" url = post.get("audio_url") # type "audio"
if url and url.startswith("https://a.tumblr.com/"): if url and url.startswith("https://a.tumblr.com/"):
yield self._prepare(url, post) yield self._prepare(url, post)
url = post.get("video_url") # type: "video" url = post.get("video_url") # type "video"
if url: if url:
yield self._prepare(_original_video(url), post) yield self._prepare(_original_video(url), post)

Loading…
Cancel
Save