I submit that type hints do tell us something new. Python’s duck typing flexibility means a number of mistakes can pass a suite of unit tests that fail to test all the obscure edge cases. An expression likea+bworks for float, integer, string, list, tuple, and even bytes. While it’...
I submit that type hints do tell us something new. Python’s duck typing flexibility means a number of mistakes can pass a suite of unit tests that fail to test all the obscure edge cases. An expression likea+bworks for float, integer, string, list, tuple, and even bytes. While it’...