commit | c1c7d8ead9eb214a6149a43e31a3213c52448877 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu May 07 04:09:33 2020 +0300 |
committer | GitHub <noreply@github.com> | Thu May 07 04:09:33 2020 +0300 |
tree | 87c656b19a20d5c5ade41f8b2088d0b84a9fccec | |
parent | 470aac4d8e76556bd8f820f3f3928dca2b4d2849 [diff] |
bpo-40397: Refactor typing._GenericAlias (GH-19719) Make the design more object-oriented. Split _GenericAlias on two almost independent classes: for special generic aliases like List and for parametrized generic aliases like List[int]. Add specialized subclasses for Callable, Callable[...], Tuple and Union[...].