From 8074e7df84c412e12e018cc25b583894feea8e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl?= Date: Wed, 10 Sep 2025 09:45:18 +0200 Subject: [PATCH] python 3.9 --- post_rss_to_ghost.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. """