[GRASS-git] [OSGeo/grass] 32723e: style: Fix if-else-block-instead-of-dict-get (SIM4...

Edouard Choinière noreply at github.com
Sun Oct 20 08:35:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 32723e04f5edddf4ccca280efa05afbb122929d2
      https://github.com/OSGeo/grass/commit/32723e04f5edddf4ccca280efa05afbb122929d2
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-10-20 (Sun, 20 Oct 2024)

  Changed paths:
    M gui/wxpython/iclass/frame.py
    M gui/wxpython/mapdisp/frame.py
    M gui/wxpython/vnet/dialogs.py
    M gui/wxpython/vnet/vnet_core.py
    M pyproject.toml
    M python/grass/temporal/register.py
    M scripts/i.pansharpen/i.pansharpen.py

  Log Message:
  -----------
  style: Fix if-else-block-instead-of-dict-get (SIM401) (#4558)

Ruff rule: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-dict-get/

Python docs: https://docs.python.org/3/library/stdtypes.html#dict.get

The get method never raises a KeyError.



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