(I apologize in advance if I've posted anything incorrectly before, I believe I
might have sent this in python-dev instead but not sure as it's not appearing
in the posts for my account).
I am aware this is clarified in the Python documentation for the typing module
but I and others have though
El jue, 30 jun 2022 a las 10:46, escribió:
> (I apologize in advance if I've posted anything incorrectly before, I
> believe I might have sent this in python-dev instead but not sure as it's
> not appearing in the posts for my account).
>
> I am aware this is clarified in the Python documentation
I accidentally created another thread in python-dev as I mentioned above, but
ideally Optional and Union should both be deprecated and phased out for the new
syntax.
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email t
On Tue, 2022-05-31 at 21:08 +, [email protected] wrote:
> On the theme of the addition of pip operators to indicate union, I
> was wondering what people think of using the following shortcuts for
> type hints.
> * type[] be a short-hand for List[type]
I'm at -½ on this idea. Using list[ty
[email protected] writes:
> I accidentally created another thread in python-dev as I mentioned
> above, but ideally Optional and Union should both be deprecated and
> phased out for the new syntax.
I think a formal deprecation is a bad idea. An annotation is an
object, which has a type. Bo