Skip to content

Fix incorrect default value for callback #13678

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Fix incorrect default value for callback #13678

merged 1 commit into from
Mar 20, 2025

Conversation

tvanbaak
Copy link
Contributor

Upstream uses a default value of False when popping callback off of the kwargs dict. The type stubs should show callback as defaulting to False instead of True.

See: https://github.com/miguelgrinberg/Flask-SocketIO/blob/3dbc92facf99d6bf1e7e354890c6113657c6f8e6/src/flask_socketio/test_client.py#L179

Upstream uses a default value of False when popping "callback" off of the kwargs dict. The type stubs should show callback as defaulting to False.

See: https://github.com/miguelgrinberg/Flask-SocketIO/blob/3dbc92facf99d6bf1e7e354890c6113657c6f8e6/src/flask_socketio/test_client.py#L179
Copy link
Contributor

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

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks!

@srittau srittau merged commit 506eceb into python:main Mar 20, 2025
43 checks passed
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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