From f055ac085cebe297448439485bf9d3377054b56d Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Tue, 3 Mar 2026 14:41:53 -0700 Subject: [PATCH] Add the config class to the field deprecation message --- python/lsst/pex/config/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/lsst/pex/config/config.py b/python/lsst/pex/config/config.py index 7ffd3b8..84b8040 100644 --- a/python/lsst/pex/config/config.py +++ b/python/lsst/pex/config/config.py @@ -1689,7 +1689,8 @@ def __setattr__(self, attr, value, at=None, label="assignment"): if self._fields[attr].deprecated is not None: fullname = _joinNamePath(self._name, self._fields[attr].name) warnings.warn( - f"Config field {fullname} is deprecated: {self._fields[attr].deprecated}", + f"Config field {_typeStr(type(self))}.{fullname} is deprecated: " + f"{self._fields[attr].deprecated}", FutureWarning, stacklevel=2, )