Consider following piece of code:
from collections import namedtuple
point = namedtuple("Point", ("x:int", "y:int"))
The Code above is just a way to demonstrate as to what I am trying to achieve.
I would like to make namedtuple
with type hints.
Do you know any elegant way how to achieve result as intended?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…