News for hackers. Stuff that matters.
Re:Python 2 will be replaced with Python 3 in the next RHEL ... by tobltobs on Wednesday April 11, 2018 @05:46AM (#16809490)
> a_list = [] # type: List[T]

How do you do that with out a comment?

Re:Python 2 will be replaced with Python 3 in the next RHEL ... by Chickenosaurus on Wednesday April 11, 2018 @05:56AM (#16809538)
from typing import List

a_list: List[T] = []

Visit https://docs.python.org/3/library/typing.html for more information.

Re:Python 2 will be replaced with Python 3 in the next RHEL ... by Osmium on Wednesday April 11, 2018 @05:54AM (#16809533)
> a_list: List[T] = []
Re:Python 2 will be replaced with Python 3 in the next RHEL ... by umanwizard on Wednesday April 11, 2018 @05:55AM (#16809537)
a_list: List[T] = []