Skip to content

Commit

Permalink
Another workaround for black
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Mar 24, 2024
1 parent 067fc76 commit 17296f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/extra/_patching.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __call_node_to_example_dec(self, node, via):
cst.Module([]).code_for_node(via),
mode=black.FileMode(line_length=self.line_length),
)
except ImportError:
except (ImportError, AttributeError):
return None # See https://github.com/psf/black/pull/4224
via = cst.parse_expression(pretty.strip())
return cst.Decorator(via)
Expand Down

0 comments on commit 17296f0

Please sign in to comment.