diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-11-07 16:46:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 16:46:08 (GMT) |
commit | e81e09bfc8a29a44a649a962870a26fe0c097cfa (patch) | |
tree | 813e841dbe1c915c3b68ef0d85262462f6878327 /Objects/unicodeobject.c | |
parent | 4c239a3222296c7d85ccd46e27835cc7880350be (diff) | |
download | cpython-e81e09bfc8a29a44a649a962870a26fe0c097cfa.zip cpython-e81e09bfc8a29a44a649a962870a26fe0c097cfa.tar.gz cpython-e81e09bfc8a29a44a649a962870a26fe0c097cfa.tar.bz2 |
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
(cherry picked from commit 1f7dfb277e5b88cddc13e5024766be787a3e9127)
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Objects/unicodeobject.c')
0 files changed, 0 insertions, 0 deletions