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

Add documentation for bytes formatting error code #14971

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

hauntsaninja
Copy link
Collaborator

See #14959

docs/source/error_code_list.rst Outdated Show resolved Hide resolved
Check that function isn't used in boolean context [str-bytes-safe]
-------------------------------------------------------------------

Warn about dangerous coercions related to bytes and string types.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure "dangerous" is the right word since it won't crash, just give potentially unexpected output.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the theme here is "implicit" which makes the intention ambiguous.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, "implicit" is a good word to use

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja hauntsaninja merged commit a9a047e into python:master Mar 30, 2023
@hauntsaninja hauntsaninja deleted the byte-errc branch March 30, 2023 05:39
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

Successfully merging this pull request may close these issues.

4 participants