Skip to content

[3.9] bpo-42233: Correctly repr GenericAlias when used with typing module (GH-23081) #23082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 1, 2020

Noticed by @serhiy-storchaka in the bpo. typing's types were not showing the parameterized generic.
Eg. previously:

>>> typing.Union[dict[str, float], list[int]]
'typing.Union[dict, list]'

Now:

>>> typing.Union[dict[str, float], list[int]]
'typing.Union[dict[str, float], list[int]]'

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 1f7dfb2)

Co-authored-by: kj [email protected]

https://bugs.python.org/issue42233

…ythonGH-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 1f7dfb2)

Co-authored-by: kj <[email protected]>
@miss-islington
Copy link
Contributor Author

@Fidget-Spinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit e81e09b into python:3.9 Nov 7, 2020
@miss-islington miss-islington deleted the backport-1f7dfb2-3.9 branch November 7, 2020 16:46
@miss-islington
Copy link
Contributor Author

@Fidget-Spinner: Status check is done, and it's a pending ❌ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants