mirror of
https://github.com/python/cpython.git
synced 2025-10-06 07:02:33 +00:00
bpo-41428: Implementation for PEP 604 (GH-21515)
See https://www.python.org/dev/peps/pep-0604/ for more information. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
fa8c9e7010
commit
1b4552c5e8
13 changed files with 693 additions and 17 deletions
|
@ -294,6 +294,7 @@ def coroutine(func):
|
|||
|
||||
|
||||
GenericAlias = type(list[int])
|
||||
Union = type(int | str)
|
||||
|
||||
|
||||
__all__ = [n for n in globals() if n[:1] != '_']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue