Skip to content

[webencodings] Update to 0.6.* - #16215

Open
donbarbos wants to merge 1 commit into
python:mainfrom
donbarbos:bump-webencodings-0.6.1
Open

[webencodings] Update to 0.6.*#16215
donbarbos wants to merge 1 commit into
python:mainfrom
donbarbos:bump-webencodings-0.6.1

Conversation

@donbarbos

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

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

@donbarbos

Copy link
Copy Markdown
Contributor Author

The library passes a string as the mapping argument to codecs.charmap_encode/decode functions, but this isn't currently listed as an accepted input type in typeshed. Would it make sense to add it?
small demo:

import codecs
user_decoding_table = ''.join(chr(c if c < 128 else c + 0xF700) for c in range(256))
codecs.charmap_decode(b'some bytes', None, user_decoding_table)

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.

1 participant