4 ms·
> Yeah, that was my assumption. Still, typing in Python feels very clunky compared to TypeScript. I used comments in the code to say what the types were, e.g.:
by cabalamat 4y ago
> Yeah, that was my assumption. Still, typing in Python feels very clunky compared to TypeScript.
I used comments in the code to say what the types were, e.g.:
def processNotesForm(d):
""" process the notes form
@param d::{str:str} = the form data
"""
Of course in modern Python one would simply say:
def processNotesForm(d: Dict[str,str]):