-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
bpo-28556: Update to typing: treat subscripted generics as proxies #265
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ilevkivskyi
changed the title
bpo-28556: Update to typing: treat subsctipted generics as proxies
bpo-28556: Update to typing: treat subscripted generics as proxies
Feb 23, 2017
Mariatta
approved these changes
Feb 24, 2017
Mariatta
pushed a commit
to Mariatta/cpython
that referenced
this pull request
Feb 24, 2017
(cherry picked from commit abb3b8a)
Mariatta
pushed a commit
to Mariatta/cpython
that referenced
this pull request
Feb 24, 2017
(cherry picked from commit abb3b8a)
Thanks @ilevkivskyi :) I cherry-picked this into the existing PRs |
Thank you Mariatta, this is perfect. |
Mariatta
added a commit
that referenced
this pull request
Feb 25, 2017
Mariatta
added a commit
that referenced
this pull request
Feb 25, 2017
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
The implementation was buggy. This affects only users of the C-API, that call PyChannel_Send() and PyChannel_Send_nr() for calls from outside of the interpreter (with no main-tasklet).
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
If called from outside of the interpreter the behavior was undefined. (Calling a C-function with wrong number of arguments).
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
Avoid undefined behavior, if Stackless classes implement __reduce__() and __reduce_ex__() using a single C-function. __reduce_ex__ now checks the type of its argument.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
Return type is 'int', not 'void'.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
…itions Most (getter)-functions, (setter)-functions and (PyCFunction)-functions with flag METH_NOARGS lack an unused last argument, "void *" for (getter) and (setter), "PyObject *" for (PyCFunction)-functions. This commit adds these arguments.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 9, 2021
…itions Most (getter)-functions, (setter)-functions and (PyCFunction)-functions with flag METH_NOARGS lack an unused last argument, "void *" for (getter) and (setter), "PyObject *" for (PyCFunction)-functions. This commit adds these arguments.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
The implementation was buggy. This affects only users of the C-API, that call PyChannel_Send() and PyChannel_Send_nr() for calls from outside of the interpreter (with no main-tasklet).
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
If called from outside of the interpreter the behavior was undefined. (Calling a C-function with wrong number of arguments).
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
Avoid undefined behavior, if Stackless classes implement __reduce__() and __reduce_ex__() using a single C-function. __reduce_ex__ now checks the type of its argument.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
Return type is 'int', not 'void'.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
…itions Most (getter)-functions, (setter)-functions and (PyCFunction)-functions with flag METH_NOARGS lack an unused last argument, "void *" for (getter) and (setter), "PyObject *" for (PyCFunction)-functions. This commit adds these arguments.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
akruis
added a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
… gcc 8 * fix PyChannel_Send_M The implementation was buggy. This affects only users of the C-API, that call PyChannel_Send() and PyChannel_Send_nr() for calls from outside of the interpreter (with no main-tasklet). * fix PyChannel_Receive_M and tasklet_new If called from outside of the interpreter the behavior was undefined. (Calling a C-function with wrong number of arguments). * fix __reduce__ / __reduce_ex__ Avoid undefined behavior, if Stackless classes implement __reduce__() and __reduce_ex__() using a single C-function. __reduce_ex__ now checks the type of its argument. * fix the signature of tp_clear functions Return type is 'int', not 'void'. * add missing arguments to C-function definitions Most (getter)-functions, (setter)-functions and (PyCFunction)-functions with flag METH_NOARGS lack an unused last argument, "void *" for (getter) and (setter), "PyObject *" for (PyCFunction)-functions. This commit adds these arguments. * Fix invalid function cast warnings Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Jun 11, 2021
jaraco
pushed a commit
that referenced
this pull request
Dec 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This a recent update from
python/typing
repo. See python/typing#393 for details.This needs to be backported to 3.5 and 3.6
@ned-deily Guido would like to get this into 3.6.1