May-06-2019, 04:39 AM
IMHO, importing it is much better than writing some weird test for type. Then depending on how different the function should be you can use @functools.singledispatch(yet another import)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs