4 ms·
>Trying to figure this out in a dynamically typed language is not fun. Sure it is. Fire up the IPython REPL at the point in the code where you're intending to
by crdoconnor 10y ago
>Trying to figure this out in a dynamically typed language is not fun.
Sure it is. Fire up the IPython REPL at the point in the code where you're intending to use it and experiment. Not only can you see what it takes, you can see what it does in real time and you can experiment on the results.
>In TypeScript (with a decent editor, like VSCode) you just hover the parameter and you can immediately see what it is.
Well, you can see that it's a string of some kind.