News for hackers. Stuff that matters.
Re:Things to use in Python 3 by ieie92ndjrj on Wednesday May 15, 2019 @09:57AM (#19919396)
The docs at python.org refer to them as “type hints” ️

https://docs.python.org/3/library/typing.html

Re:Things to use in Python 3 by ehsankia on Wednesday May 15, 2019 @10:56PM (#19925765)
As mentioned in the other comment, this is just a library used to give type hints as annotations. The feature itself is called annotations, this is one specific use-case.

The reason this library exists in stdlib is so that all the different type hint libraries can interoperate. Otherwise if they each brought their own typing, you couldn't switch between different static analysis libraries.

Re:Things to use in Python 3 by uranusjr on Wednesday May 15, 2019 @10:06PM (#19925559)
`typing` is the module that uses annotations as type hints. Parent is correct; Python documentation calls the syntax annotations.
Re:Things to use in Python 3 by ieie92ndjrj on Thursday May 16, 2019 @02:17PM (#19931399)
So Python docs refer to both depending on the context.