mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-26 18:43:37 +00:00
Update type hint syntax for Python < 3.10 compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user