Skip to content

Add documentation for bytes formatting error code#14971

Merged
hauntsaninja merged 5 commits intopython:masterfrom
hauntsaninja:byte-errc
Mar 30, 2023
Merged

Add documentation for bytes formatting error code#14971
hauntsaninja merged 5 commits intopython:masterfrom
hauntsaninja:byte-errc

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

See #14959

Check that function isn't used in boolean context [str-bytes-safe]
-------------------------------------------------------------------

Warn about dangerous coercions related to bytes and string types.
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

hauntsaninja and others added 4 commits March 28, 2023 22:02
@github-actions
Copy link
Copy Markdown
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