From a53e5a2b3dea13d157d91aff1ee91fb6d2f9b25d Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 17 May 2025 16:18:16 +0800 Subject: [PATCH] Update type hint syntax for Python < 3.10 compatibility --- Whatsapp_Chat_Exporter/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/utility.py b/Whatsapp_Chat_Exporter/utility.py index 9eda832..afcebd9 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -601,7 +601,7 @@ def setup_template(template: Optional[str], no_avatar: bool, experimental: bool APPLE_TIME = 978307200 -def safe_name(text: Union[str|bytes]) -> str: +def safe_name(text: Union[str, bytes]) -> str: """ Sanitize the input text and generates a safe file name. This function serves a similar purpose to slugify() from