Closed allComputableThings closed 4 weeks ago
I don't understand your examples. They give different error messages to me, as %%s
are not valid parameters.
It is not a Python practice to inspect the types of the argument upfront and throw error messages if the type is not what expected. The custom is to pass arguments to the function assuming that the user knows what they are doing (duck typing). If you want to catch type errors you can use a linter such as Mypy.
but...