Skip to content

Commit 1480aee

Browse files
committed
Explicitly state that pickling or copying should work
1 parent 8bcbc13 commit 1480aee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pep-0585.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ and::
195195
For accessing the proxy type from Python code, it will be exported
196196
from the ``types`` module as ``GenericAlias``.
197197

198+
Pickling or (shallow- or deep-) copying a ``GenericAlias`` instance
199+
will preserve the type, origin, attributes and parameters.
200+
198201

199202
Forward compatibility
200203
---------------------

0 commit comments

Comments
 (0)