diff options
author | kj <28750310+Fidget-Spinner@users.noreply.github.com> | 2020-12-24 10:47:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 18:47:40 -0800 |
commit | 6dd3da3cf4a0d6cb62d9c2a155434c127183454d (patch) | |
tree | 772fbdf7ba137564d990fa96a323bc19c0249bd8 /Lib/statistics.py | |
parent | eee1c7745ab4eb4f75153e71aaa2a62018b7625a (diff) | |
download | cpython-git-6dd3da3cf4a0d6cb62d9c2a155434c127183454d.tar.gz |
bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)
Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior.
Diffstat (limited to 'Lib/statistics.py')
0 files changed, 0 insertions, 0 deletions