Closed agarcher closed 5 years ago
This is a leftover from a bunch of refactoring We should really fix this for version 3.0, so we accept a positional argument.
Yes, accepting a positional argument would be way better. Makes sense to me. So you want to just close this and wait for 3.0?
How I dealt with the other deprecations:
However, for some deprecations in the test helpers I simply immediately removed stuff in a 2.x version, especially when we can give a good error message and the fix is simple. I am leaning towards this option here.
Closing this. 2.9.2 has been released, which allow you to use a positional argument instead.
Thanks @wvanbergen!
I spent a while trying to figure out how to assert a call to
increment
with a non-default step size (akavalue
). The implementation is not obvious becauseStatsD.increment
uses a positional argument, whileassert_statsd_increment
uses a named argument. Documentation of this seems useful to me.