Incompatible with black v22.1.0
peterjc opened this issue · 2 comments
peterjc commented
I'm getting this after upgrading to black v22.1.0, using blacken-docs 1.12.0:
Traceback (most recent call last):
File "/Users/xxx/.cache/pre-commit/repo2345cyqn/py_env-python3/bin/blacken-docs", line 8, in <module>
sys.exit(main())
File "/Users/xxx/.cache/pre-commit/repo2345cyqn/py_env-python3/lib/python3.8/site-packages/blacken_docs.py", line 238, in main
black_mode = black.FileMode(
File "<string>", line 3, in __init__
TypeError: set object expected; got list
Traceback (most recent call last):
File "/Users/xxx/.cache/pre-commit/repo2345cyqn/py_env-python3/bin/blacken-docs", line 8, in <module>
sys.exit(main())
File "/Users/xxx/.cache/pre-commit/repo2345cyqn/py_env-python3/lib/python3.8/site-packages/blacken_docs.py", line 238, in main
black_mode = black.FileMode(
File "<string>", line 3, in __init__
TypeError: set object expected; got list
peterjc commented
Possible one line, line 238:
target_versions=set(args.target_versions),