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

Fix stubtest errors for updating aiofiles. #9711

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

hmc-cs-mdrissi
Copy link
Contributor

Resolves stubsabot. Not a library I've used so generally read over implementation.

@@ -9,6 +9,15 @@ aiofiles.threadpool.binary.AsyncBufferedIOBase.readable
aiofiles.threadpool.binary.AsyncBufferedIOBase.seekable
aiofiles.threadpool.binary.AsyncBufferedIOBase.tell
aiofiles.threadpool.binary.AsyncBufferedIOBase.writable
aiofiles.threadpool.binary.AsyncIndirectBufferedIOBase.close
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of the allowlist are copy pasting the non-indirect version above it. This version introduces indirect variants of most of IO classes that need exception for same reason (at runtime they delegate with *args/**kwargs).

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thank you, and sorry for the delay in anybody getting to this! A few thoughts:

stubs/aiofiles/aiofiles/base.pyi Show resolved Hide resolved
stubs/aiofiles/aiofiles/threadpool/binary.pyi Outdated Show resolved Hide resolved
stubs/aiofiles/aiofiles/threadpool/binary.pyi Outdated Show resolved Hide resolved
stubs/aiofiles/aiofiles/threadpool/binary.pyi Outdated Show resolved Hide resolved
stubs/aiofiles/aiofiles/threadpool/text.pyi Outdated Show resolved Hide resolved
@JelleZijlstra
Copy link
Member

@hmc-cs-mdrissi could you respond to Alex's feedback?

@hmc-cs-mdrissi
Copy link
Contributor Author

Sorry on delay. I think I've covered all comments now.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

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

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

@AlexWaygood AlexWaygood merged commit 390058e into python:main Mar 9, 2023
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.

3 participants