[GRASS-git] [OSGeo/grass] 0ea5e3: style: Fix reimplemented-operator (FURB118) (#4408)

Edouard Choinière noreply at github.com
Sat Sep 28 14:58:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 0ea5e37d4122cf9df540a324f74ad55836e27d1a
      https://github.com/OSGeo/grass/commit/0ea5e37d4122cf9df540a324f74ad55836e27d1a
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-09-28 (Sat, 28 Sep 2024)

  Changed paths:
    M gui/wxpython/animation/temporal_manager.py
    M gui/wxpython/gui_core/ghelp.py
    M gui/wxpython/mapwin/buffered.py
    M gui/wxpython/psmap/dialogs.py
    M gui/wxpython/timeline/frame.py
    M gui/wxpython/tplot/frame.py
    M man/build_full_index.py
    M pyproject.toml
    M python/grass/imaging/images2ims.py
    M scripts/g.search.modules/g.search.modules.py
    M scripts/v.report/v.report.py
    M utils/g.html2man/rest.py

  Log Message:
  -----------
  style: Fix reimplemented-operator (FURB118) (#4408)

* style: Fix reimplemented-operator (FURB118)

Ruff rule: https://docs.astral.sh/ruff/rules/reimplemented-operator/

Replaced lambdas with `operator.itemgetter()` or `operator.add()`. These are implemented more efficiently in C and have a Python fallback.

* utils/g.html2man: Replace children function with operator.itemgetter



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