I would like to keep Union and Optional as (maybe) discouraged but definitely not deprecated. We are experimenting with using modern `int|None` type hints on my job for server-side code where we can upgrade supported Python versions easily. On the other hand, I would keep old-good syntax as an *option* unless end-of-life for all Python versions that don't support implicit type unions. Offtopic. When Guido introduced type hints in 2014, I was very skeptical regarding the whole idea -- but wrote no negative opinion in public space. I thought: "Maybe This Guy knows and feels something better than me?" Later I started to use typing in simple projects and libraries. Switched FOSS libraries to declare type hints. Apparently I'm using 'mypy --strict' everywhere at my job and core FOSS libs under my direct control. I hope people who don't feel typing is useful will step over their objections and love *optional* types as I do now. On Fri, Dec 17, 2021 at 6:36 PM Guido van Rossum <guido@python.org> wrote:
On Fri, Dec 17, 2021 at 01:48 Paul Moore <p.f.moore@gmail.com> wrote:
Given that type annotations are becoming far more prevalent in "average" Python code, maybe it's time for more of the discussions to be held in the broader python-dev and python-ideas lists?
I’d be happy if that could happen. So far, unfortunately, the Python-dev discussion of typing always seems to run into unproductive anti-typing rants by people who are not using them but nevertheless have an opinion on them.
(And let’s leave Python-ideas out of it. That list has become too toxic.)
-- --Guido (mobile) _______________________________________________ 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: andrew.svetlov@gmail.com
-- Thanks, Andrew Svetlov