Use stacklevel=2 with DeprecationWarnings
This makes the warnings refer to the code where it is used, which makes it easier to find and fix.
Showing
Please
register
or
sign in
to comment
This makes the warnings refer to the code where it is used, which makes it easier to find and fix.