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

Support additinal attributes in callback protocols #14084

Merged
merged 2 commits into from
Nov 13, 2022

Conversation

ilevkivskyi
Copy link
Member

Fixes #10976
Fixes #10403

This is quite straightforward. Note that we will not allow arbitrary attributes on functions, only those that are defined in types.FunctionType (or more precisely builtins.function that is identical). We have a separate issue for arbitrary attributes #2087

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

psycopg (https://github.com/psycopg/psycopg)
+ tests/test_server_cursor_async.py:23: error: Unused "type: ignore" comment
+ tests/test_server_cursor.py:20: error: Unused "type: ignore" comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants