Skip to content

Commit

Permalink
Fix dummy creation for multi-frameworks objects (huggingface#19144)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger authored Sep 21, 2022
1 parent 66154a6 commit 451df72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/check_dummies.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
_re_backend = re.compile(r"is\_([a-z_]*)_available()")
# Matches from xxx import bla
_re_single_line_import = re.compile(r"\s+from\s+\S*\s+import\s+([^\(\s].*)\n")
_re_test_backend = re.compile(r"^\s+if\s+not\s+is\_[a-z_]*\_available\(\)")
_re_test_backend = re.compile(r"^\s+if\s+not\s+\(?is\_[a-z_]*\_available\(\)")


DUMMY_CONSTANT = """
Expand Down

0 comments on commit 451df72

Please sign in to comment.