From 076f684db79b3a27b625fdac7e372e4f094d100b Mon Sep 17 00:00:00 2001 From: Pavel Iakubovskii Date: Fri, 29 Nov 2024 18:25:46 +0000 Subject: [PATCH] fixup (#989) --- segmentation_models_pytorch/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/segmentation_models_pytorch/__init__.py b/segmentation_models_pytorch/__init__.py index c8209226..5cde6004 100644 --- a/segmentation_models_pytorch/__init__.py +++ b/segmentation_models_pytorch/__init__.py @@ -26,7 +26,9 @@ # Suppress the specific SyntaxWarning for `pretrainedmodels` warnings.filterwarnings("ignore", message="is with a literal", category=SyntaxWarning) -warnings.filterwarnings("ignore", message=r'"is" with \'str\' literal.*', category=SyntaxWarning) # for python >= 3.12 +warnings.filterwarnings( + "ignore", message=r'"is" with \'str\' literal.*', category=SyntaxWarning +) # for python >= 3.12 def create_model(