News for hackers. Stuff that matters.
Re:Python's Type Checking Renaissance by duckerude on Tuesday January 26, 2021 @12:04PM (#25918249)
> And then concepts like Callable, Union, TypedDict, and Optional don't have dedicated syntax for readability; they're generic types that you have to import and parameterize.

Union is getting dedicated syntax in 3.10: https://www.python.org/dev/peps/pep-0604/

Optional could follow: https://www.python.org/dev/peps/pep-0645/

Re:Python's Type Checking Renaissance by cstejerean on Wednesday January 27, 2021 @12:59AM (#25924815)
That’s great news. Hopefully PEP 505 gets revised as well, which would make optional not only more ergonomic to declare but also more ergonomic to use.
Re:Python's Type Checking Renaissance by brundolf on Tuesday January 26, 2021 @12:09PM (#25918338)
Good to know! That's exciting