On 17/11/2025 19.51, John Snow wrote:
Pylint 4.x has refined checking for variable names that behave as
constants vs ones that do not; unfortunately our tricky import machinery
is perceived as these variables being re-assigned.

Add a temporary variable with an underscore and assign to the global
constants precisely once to alleviate this new nag message. Add an
ignore for this name for older versions of pylint that developers may
have installed locally.

(In other words: there is no solution that will cater to both pre- and
post- 4.x versions, so we target 4.x here and silence older versions.)

Signed-off-by: John Snow <[email protected]>
---
  python/scripts/mkvenv.py | 24 ++++++++++++++++--------
  python/setup.cfg         |  1 +
  2 files changed, 17 insertions(+), 8 deletions(-)
Reviewed-by: Thomas Huth <[email protected]>


Reply via email to