8000 Use bytes and bytearray consistently in the library stubs · Issue #33 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Use bytes and bytearray consistently in the library stubs #33

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

Closed
JukkaL opened this issue Dec 18, 2012 · 1 comment
Closed

Use bytes and bytearray consistently in the library stubs #33

JukkaL opened this issue Dec 18, 2012 · 1 comment
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator
JukkaL commented Dec 18, 2012

The use of bytes and bytearray in the library stubs is inconsistent. Some modules do not properly support bytes objects (e.g. os) even though they work in Python.

Also some Python functions accept only bytes objects, but others accept bytearrays as well. This needs to be reflected in the library stubs (however, Python documentation is not always explicit about this, which complicates the issue).

@gvanrossum
Copy link
Member

See #1141. There's a lot to do here but we needn't keep this particular issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants
0