3 ms·
That seems obvious? If you want a variable number of arguments of arbitrary type you have to specify the common supertype, commonly top itself. To do otherwise
by masklinn 3y ago
That seems obvious? If you want a variable number of arguments of arbitrary type you have to specify the common supertype, commonly top itself.
To do otherwise would require some form of vararg generics which is uncommon.
- IshKebab 3y agoIt's extremely common for Python programmers to write code with kwargs of different types. Look at subprocess.run() for example.