Skip to content

Improve the stubs in charset.pyi under python3. - #2768

Merged
srittau merged 2 commits into
python:masterfrom
joshuamorton:fix_email
Feb 9, 2019
Merged

srittau merged 2 commits into
python:masterfrom
joshuamorton:fix_email

Conversation

@joshuamorton

Copy link
Copy Markdown
Contributor

The python3 charset stubs didn't include certain necessary module level
constansts (like QP) and too-tightly defined the arguments to some of
the functions in the module. This is no longer the case.

Fixes #2767.

Joshua Morton added 2 commits January 25, 2019 11:36
The python3 charset stubs didn't include certain necessary module level
constansts (like `QP`) and too-tightly defined the arguments to some of
the functions in the module. This is no longer the case.
On a second look, add_charset only accepts a string, it doesn't
stringify the accepted object, so a Charset won't function correctly.

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you!

@srittau
srittau merged commit b0eb6c2 into python:master Feb 9, 2019
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