| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
(cherry picked from commit 384b7a4bd988986bca227c7e85c32d766da74708)
|
|
|
|
|
| |
(cherry picked from commit 77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5)
Co-authored-by: Mikhail Golubev <qsolo825@gmail.com>
|
|
|
|
|
|
| |
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
If only offsetof() is needed: include stddef.h instead.
When structmember.h is used, add a comment explaining that
PyMemberDef is used.
|
|
This implements things like `list[int]`,
which returns an object of type `types.GenericAlias`.
This object mostly acts as a proxy for `list`,
but has attributes `__origin__` and `__args__`
that allow recovering the parts (with values `list` and `(int,)`.
There is also an approximate notion of type variables;
e.g. `list[T]` has a `__parameters__` attribute equal to `(T,)`.
Type variables are objects of type `typing.TypeVar`.
|