[GRASS-git] [OSGeo/grass] a3c448: Python: Fix new pylint chained-comparison and comp...

Edouard Choinière noreply at github.com
Fri Oct 2 15:17:00 PDT 2026


  Branch: refs/heads/renovate/main-pylint-4.x
  Home:   https://github.com/OSGeo/grass
  Commit: a3c4483812a0be9b0a08c1f50a277f10ef3fb0cb
      https://github.com/OSGeo/grass/commit/a3c4483812a0be9b0a08c1f50a277f10ef3fb0cb
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M gui/wxpython/core/utils.py
    M gui/wxpython/gui_core/forms.py
    M gui/wxpython/tplot/frame.py
    M python/grass/pygrass/raster/segment.py
    M python/grass/temporal/c_libraries_interface.py
    M python/grass/temporal/temporal_extent.py
    M scripts/i.pansharpen/i.pansharpen.py
    M scripts/r.in.wms/wms_drv.py
    M scripts/r.tileset/r.tileset.py

  Log Message:
  -----------
  Python: Fix new pylint chained-comparison and comparison-with-itself messages

Pylint 4.1 reports R1716 (chained-comparison) and R0124
(comparison-with-itself). Rewrite the flagged conditions as chained
comparisons, with unchanged logic, and use math.isnan() for the NaN
checks in c_libraries_interface.

Needed for the pylint update in #7996. Drafted with AI assistance
(Claude Code); the changes are mechanical and were checked with
pylint 4.1.1 and ruff.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list