Skip to content

Commit

Permalink
fixup (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel authored Nov 29, 2024
1 parent cc482aa commit 076f684
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion segmentation_models_pytorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 076f684

Please sign in to comment.