[issue40336] Refactor typing._SpecialForm

2020-04-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40336] Refactor typing._SpecialForm

2020-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 40ded947f82683f0ed08144599a83d3a1ce719eb by Serhiy Storchaka in branch 'master': bpo-40336: Refactor typing._SpecialForm (GH-19620) https://github.com/python/cpython/commit/40ded947f82683f0ed08144599a83d3a1ce719eb -- ___

[issue40336] Refactor typing._SpecialForm

2020-04-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18950 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19620 ___ Python tracker ___

[issue40336] Refactor typing._SpecialForm

2020-04-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR refactors the implementation of typing._SpecialForm. Different special forms are different by name, docstring, and the behavior of __getitem__. Instead of special casing by name in __getitem__, instances are now parametrized by the implem