diff --git a/post_rss_to_ghost.py b/post_rss_to_ghost.py index c9ac18a..653f329 100644 --- a/post_rss_to_ghost.py +++ b/post_rss_to_ghost.py @@ -9,7 +9,6 @@ import re import time from logging.handlers import RotatingFileHandler from typing import Optional, List - import feedparser import requests import jwt @@ -18,7 +17,7 @@ from urllib.parse import urlparse, parse_qs # ------------- YouTube helpers ------------- -def fetch_youtube_oembed_html(youtube_url: str, timeout: int = 10) -> str | None: +def fetch_youtube_oembed_html(youtube_url: str, timeout: int = 10) -> Optional[str]: """ Get YouTube oEmbed HTML exactly as provided and wrap it as a Ghost embed card. """