ruff
7b487d85 - [`pydocstyle`] Handle arguments with the same names as sections (`D417`) (#16011)

Comment changes are shownComment changes are hidden
Commit
127 days ago
[`pydocstyle`] Handle arguments with the same names as sections (`D417`) (#16011) ## Summary Fixes #16007. The logic from the last fix for this (#9427) was sufficient, it just wasn't being applied because `Attributes` sections aren't expected to have nested sections. I just deleted the outer conditional, which should hopefully fix this for all section types. ## Test Plan New regression test, plus the existing D417 tests.
Author
Parents
  • crates/ruff_linter
    • resources/test/fixtures/pydocstyle
      • File
        D417.py
    • src
      • docstrings
        • File
          sections.rs
      • rules/pydocstyle/snapshots
        • ruff_linter__rules__pydocstyle__tests__d417_google.snap
        • ruff_linter__rules__pydocstyle__tests__d417_google_ignore_var_parameters.snap
        • ruff_linter__rules__pydocstyle__tests__d417_unspecified.snap
        • ruff_linter__rules__pydocstyle__tests__d417_unspecified_ignore_var_parameters.snap