C. · @cazabon
166 followers · 4009 posts · Server mindly.social

@folkerschamel @ado

And yes, many of them are that would be to find by other routes. Your unit test doesn't try passing a to that you wrote that you only considered using ints with - but with hints, mypy will find that "one weird way" that a float value returned from somewhere else could get passed into the function.

Type hints in code - used well and consistently, no using "" to shut mypy up - make me 50% more productive, I think. </anecdote>

#bugs #agonizing #probably #float #function #any

Last updated 1 year ago