Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with black v22.1.0 #143

Closed
peterjc opened this issue Jan 30, 2022 · 2 comments
Closed

Incompatible with black v22.1.0 #143

peterjc opened this issue Jan 30, 2022 · 2 comments

Comments

@peterjc
Copy link
Contributor

peterjc commented Jan 30, 2022

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
Copy link
Contributor Author

peterjc commented Jan 30, 2022

Possible one line, line 238:

target_versions=set(args.target_versions),

@asottile
Copy link
Contributor

dupe #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants