ruff
cde4a7d7 - [flake8-pyi] Fix false negative for PYI046 with unused generic protocols (#9405)

Comment changes are shownComment changes are hidden
Commit
1 year ago
[flake8-pyi] Fix false negative for PYI046 with unused generic protocols (#9405) I just fixed this false negative in flake8-pyi (https://github.com/PyCQA/flake8-pyi/pull/460), and then realised ruff has the exact same bug! Luckily it's a very easy fix. (The bug is that unused protocols go undetected if they're generic.)
Author
Parents
  • crates/ruff_linter
    • resources/test/fixtures/flake8_pyi
      • File
        PYI046.py
      • File
        PYI046.pyi
    • src/rules/flake8_pyi
      • rules
        • File
          unused_private_type_definition.rs
      • snapshots
        • ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.py.snap
        • ruff_linter__rules__flake8_pyi__tests__PYI046_PYI046.pyi.snap