commit | 1f7dfb277e5b88cddc13e5024766be787a3e9127 | [log] [tgz] |
---|---|---|
author | kj <28750310+Fidget-Spinner@users.noreply.github.com> | Mon Nov 02 02:13:38 2020 +0800 |
committer | GitHub <noreply@github.com> | Sun Nov 01 10:13:38 2020 -0800 |
tree | 042580f940e32cb44182c0aafd31710610efa455 | |
parent | 148c76b27ce3823ff7e3ccb1d3a6b4598ce9b35b [diff] |
bpo-42233: Correctly repr GenericAlias when used with typing module (GH-23081) Noticed by @serhiy-storchaka in the bpo. `typing`'s types were not showing the parameterized generic. Eg. previously: ```python >>> typing.Union[dict[str, float], list[int]] 'typing.Union[dict, list]' ``` Now: ```python >>> typing.Union[dict[str, float], list[int]] 'typing.Union[dict[str, float], list[int]]' ``` Automerge-Triggered-By: GH:gvanrossum