<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Include/genericaliasobject.h, branch master</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-44654: Refactor and clean up the union type implementation (GH-27196)</title>
<updated>2021-07-17T19:44:10+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-07-17T19:44:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0fd27375cabd12e68a2f12cfeca11a2d5043429e'/>
<id>0fd27375cabd12e68a2f12cfeca11a2d5043429e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)</title>
<updated>2021-07-06T18:04:33+00:00</updated>
<author>
<name>Yurii Karabas</name>
<email>1998uriyyo@gmail.com</email>
</author>
<published>2021-07-06T18:04:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c45fa1a5d9b419cf13ad4b5a7cb453956495b83e'/>
<id>c45fa1a5d9b419cf13ad4b5a7cb453956495b83e</id>
<content type='text'>
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Guido van Rossum &lt;gvanrossum@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Ken Jin &lt;28750310+Fidget-Spinner@users.noreply.github.com&gt;
Co-authored-by: Guido van Rossum &lt;gvanrossum@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39481: Implementation for PEP 585 (#18239)</title>
<updated>2020-04-07T16:50:06+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-07T16:50:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=48b069a003ba6c684a9ba78493fbbec5e89f10b8'/>
<id>48b069a003ba6c684a9ba78493fbbec5e89f10b8</id>
<content type='text'>
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`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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`.
</pre>
</div>
</content>
</entry>
</feed>
