好的,我克隆了整个cpython repo并进行了搜索:
$ git log -S 'self._special = special'
commit c1c7d8ead9eb214a6149a43e31a3213c52448877
Author: Serhiy Storchaka <storchaka@gmail.com>
Date: Thu May 7 04:09:33 2020 +0300
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[...].
commit d911e40e788fb679723d78b6ea11cabf46caed5a
Author: Ivan Levkivskyi <levkivskyi@gmail.com>
Date: Sat Jan 20 11:23:59 2018 +0000
bpo-32226: PEP 560: improve typing module (#4906)
This PR re-designs the internal typing API using the new PEP 560 features.
However, there are only few minor changes in the public API.
所以这个属性是在
d911e40e788fb679723d78b6ea11cabf46caed5a
哪个在
3.7.0b1
并在中删除
c1c7d8ead9eb214a6149a43e31a3213c52448877
哪个在
3.9.0b1
.里面的任何东西
3.7
或
3.8
应该拥有它。