Set stacklevel for all deprecation warnings

This commit is contained in:
Lance Edgar 2023-09-10 13:51:11 -05:00
parent 48daa042d1
commit e255c35e86
5 changed files with 9 additions and 17 deletions

View file

@ -309,7 +309,7 @@ class Grid(object):
"""
warnings.warn("Grid.hide_column() is deprecated; please use "
"Grid.remove() instead.",
DeprecationWarning)
DeprecationWarning, stacklevel=2)
self.remove(key)
def hide_columns(self, *keys):