Hacker News new | ask | show | jobs
by cabalamat 1243 days 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]):