[issue46480] Implement typing.assert_type

2022-03-23 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 3354245daf89ca2c760c2c3e5b69a571f25073ed by Shantanu in branch 'main': bpo-46480: rephrase typing.assert_type docs (GH-32069) https://github.com/python/cpython/commit/3354245daf89ca2c760c2c3e5b69a571f25073ed --

[issue46480] Implement typing.assert_type

2022-03-23 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 5.0 -> 6.0 pull_requests: +30158 pull_request: https://github.com/python/cpython/pull/32069 ___ Python tracker ___

[issue46480] Implement typing.assert_type

2022-03-16 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46480] Implement typing.assert_type

2022-03-16 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 96568e995d840c66edb25b6b9d85e4dcccf5a936 by Jelle Zijlstra in branch 'main': bpo-46480: add typing.assert_type (GH-30843) https://github.com/python/cpython/commit/96568e995d840c66edb25b6b9d85e4dcccf5a936 --

[issue46480] Implement typing.assert_type

2022-01-23 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +29024 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30843 ___ Python tracker ___

[issue46480] Implement typing.assert_type

2022-01-22 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Implement typing.assert_type as proposed in https://mail.python.org/archives/list/typing-...@python.org/thread/MITFQ6Z45RRMXY3HNM66IC3XXS3TA3JN/. This is a special primitive that asserts to the type checker what the type of an expression is. Tentatively