Using python 3, one has the option to use typehints.
My question is, if a function returns None, should one add this, or leave it blank.
i.e.
def hint(p:str) -> None:
pass
def no_hint(p:str):
pass
And which PEP addresses this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…