diff --git a/unshackle/core/__main__.py b/unshackle/core/__main__.py index 2e80b53..7aac73e 100644 --- a/unshackle/core/__main__.py +++ b/unshackle/core/__main__.py @@ -1,14 +1,16 @@ +import warnings + +# Suppress SyntaxWarning from unmaintained tinycss package (dependency of subby) +# Must be set before any imports that might trigger tinycss loading +warnings.filterwarnings("ignore", category=SyntaxWarning, module="tinycss") + import atexit import logging -import warnings from pathlib import Path import click import urllib3 from rich import traceback - -# Suppress SyntaxWarning from unmaintained tinycss package (dependency of subby) -warnings.filterwarnings("ignore", category=SyntaxWarning, module="tinycss") from rich.console import Group from rich.padding import Padding from rich.text import Text