The timeline LGTM!
On 15 Dec 2021, at 15:33, Ken Jin <kenjin4096@gmail.com> wrote:
Alright, I propose the following timeline:
1. Python 3.10 added | for Union. 2. Python 3.12 will mark subscripting typing.Union as deprecated in docs. 3. Python >=3.15 will emit deprecation warning specifically for square-bracket form of typing.Union[]. But keep typing.Union around for runtime simplicity, introspection and runtime typing `isinstance()` uses. By then, 3.9 should be EOL, so library authors shouldn't need to worry supporting that. 4. Python >=3.17 will remove typing.Union[] square bracket usage altogether. Again, we're keeping the typing.Union type itself.
What do y'all think? _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: alex.waygood@gmail.com