-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Disable universal newlines when reading TOML #10893
Conversation
(I believe the current plan for this PR is to follow the lead of pypa/pip#10238 (comment) ) |
Yes. I assigned myself this PR and the corresponding one to Black and I plan to follow pip's decision. |
While we figure out what the plan is in coordination with black and pip (see #10893), just pin to the previous version of tomli that isn't causing our CI to fail.
While we figure out what the plan is in coordination with black and pip (see #10893), just pin to the previous version of tomli that isn't causing our CI to fail.
This comment has been minimized.
This comment has been minimized.
It would appear that pip is going to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added "suggested changes" for the change @ethanhs mentioned, so if that's what maintainers want they can just click on those "commit suggestion" buttons.
EDIT: Note that my recommendation is still to not click those buttons as that is technically speaking an incorrect way to read TOML v1.0.0. Invalid TOML may be parsed without an error being raised.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I am going to apply the changes to unblock the release (also it looks like this is what black is doing). |
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* Disable universal newlines when reading TOML * Update mypy/modulefinder.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * Update mypy/config_parser.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* Disable universal newlines when reading TOML * Update mypy/modulefinder.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * Update mypy/config_parser.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Reading a file with universal newlines is not TOML compatible.
See e.g. toml-lang/toml#837 for context.