Advertisement
cooperlees

SQLAlchemy Error

May 3rd, 2021
1,581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.21 KB | None | 0 0
  1. (tb) crl-m1:sqlalchemy cooper$ black -v --color lib/sqlalchemy/event/legacy.py --experimental-string-processing
  2. Using configuration from /private/tmp/primer_20210503/sqlalchemy/pyproject.toml.
  3. Traceback (most recent call last):
  4.   File "/Users/cooper/repos/black/src/black/__init__.py", line 770, in reformat_one
  5.     if changed is not Changed.CACHED and format_file_in_place(
  6.   File "/Users/cooper/repos/black/src/black/__init__.py", line 913, in format_file_in_place
  7.     dst_contents = format_file_contents(src_contents, fast=fast, mode=mode)
  8.   File "/Users/cooper/repos/black/src/black/__init__.py", line 1026, in format_file_contents
  9.     dst_contents = format_str(src_contents, mode=mode)
  10.   File "/Users/cooper/repos/black/src/black/__init__.py", line 1101, in format_str
  11.     for line in transform_line(
  12.   File "/Users/cooper/repos/black/src/black/__init__.py", line 2873, in transform_line
  13.     result = run_transformer(line, transform, mode, features, line_str=line_str)
  14.   File "/Users/cooper/repos/black/src/black/__init__.py", line 6902, in run_transformer
  15.     result.extend(transform_line(transformed_line, mode=mode, features=features))
  16.   File "/Users/cooper/repos/black/src/black/__init__.py", line 2873, in transform_line
  17.     result = run_transformer(line, transform, mode, features, line_str=line_str)
  18.   File "/Users/cooper/repos/black/src/black/__init__.py", line 6902, in run_transformer
  19.     result.extend(transform_line(transformed_line, mode=mode, features=features))
  20.   File "/Users/cooper/repos/black/src/black/__init__.py", line 2873, in transform_line
  21.     result = run_transformer(line, transform, mode, features, line_str=line_str)
  22.   File "/Users/cooper/repos/black/src/black/__init__.py", line 6898, in run_transformer
  23.     for transformed_line in transform(line, features):
  24.   File "/Users/cooper/repos/black/src/black/__init__.py", line 2970, in __call__
  25.     for line_result in self.do_transform(line, string_idx):
  26.   File "/Users/cooper/repos/black/src/black/__init__.py", line 4488, in do_transform
  27.     assert (
  28. AssertionError: Apparently, old parentheses do NOT exist?!
  29. error: cannot format lib/sqlalchemy/event/legacy.py: Apparently, old parentheses do NOT exist?!
  30. Oh no! 💥 💔 💥
  31. 1 file failed to reformat.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement