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

Re-enable str-bytes-safe mypy error, and fix uses #2938

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

benclifford
Copy link
Collaborator

These changes are all in the interchange. In most cases, this error is found when a manager id (a byte sequence) is used in a string substitution, and to make happy, the format string is modified to indicate that we really do want to represent that byte sequence as a repr.

The only other place is one rendering of a binary message into a log string, and the fix is the same.

from benc-mypy branch

Type of change

  • Code maintentance/cleanup

These changes are all in the interchange. In most cases, this error is
found when a manager id (a byte sequence) is used in a string substitution,
and to make happy, the format string is modified to indicate that we
really do want to represent that byte sequence as a repr.

The only other place is one rendering of a binary message into a log
string, and the fix is the same.

from benc-mypy branch
@benclifford benclifford merged commit f95461e into master Nov 1, 2023
4 checks passed
@benclifford benclifford deleted the benc-mypy-str-bytes branch November 1, 2023 16:20
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.

2 participants