ruff/crates/ruff_linter/resources/test/fixtures/flake8_pyi
Dan Parizher 7576669297
[`flake8-pyi`] Fix PYI034 to not trigger on metaclasses (`PYI034`) (#20881)
## Summary

Fixes #20781

---------

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-10-24 13:40:26 +00:00
..
PYI001.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI001.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI002.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI002.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI003.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI003.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI004.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI004.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI005.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI005.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI006.py [`flake8-pyi`] - include all python file types for `PYI006` and `PYI066` (#14059) 2024-11-03 11:47:36 +00:00
PYI006.pyi [`flake8-pyi`] Implement `PYI066` (#11541) 2024-05-29 00:30:00 +00:00
PYI007.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI007.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI008.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI008.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI009.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI009.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI010.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI010.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI011.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI011.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI012.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI012.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI013.py [`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) (#19399) 2025-07-29 15:06:04 -04:00
PYI013.pyi [`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) (#19399) 2025-07-29 15:06:04 -04:00
PYI014.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI014.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI015.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI015.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI016.py [`flake8-pyi`] Skip fix if all `Union` members are `None` (`PYI016`) (#19416) 2025-07-22 17:03:14 +00:00
PYI016.pyi [`flake8-pyi`] Expand `Optional[A]` to `A | None` (`PYI016`) (#18572) 2025-06-27 15:43:11 +00:00
PYI017.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI017.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI018.py [flake8-pyi] Expand PYI018 to cover ParamSpecs and TypeVarTuples (#9198) 2023-12-20 03:10:07 +00:00
PYI018.pyi [flake8-pyi] Expand PYI018 to cover ParamSpecs and TypeVarTuples (#9198) 2023-12-20 03:10:07 +00:00
PYI019_0.py [`flake8-pyi`] Fix `custom-typevar-for-self` with string annotations (`PYI019`) (#18311) 2025-06-16 10:47:17 -04:00
PYI019_0.pyi [`flake8-pyi`] Fix `custom-typevar-for-self` with string annotations (`PYI019`) (#18311) 2025-06-16 10:47:17 -04:00
PYI019_1.pyi [`flake8-pyi`] Fix incorrect behaviour of `custom-typevar-return-type` preview-mode autofix if `typing` was already imported (`PYI019`) (#15853) 2025-01-31 16:46:31 +00:00
PYI020.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI020.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI021.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI021.pyi [`flake8-pyi`] Add autofix for `docstring-in-stub` (`PYI021`) (#14150) 2024-11-07 12:00:19 +00:00
PYI021_1.pyi [`flake8-pyi`] Avoid syntax error from conflict with `PIE790` (`PYI021`) (#20010) 2025-09-24 21:26:59 +00:00
PYI024.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI024.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI025_1.py Correctly handle references in `__all__` definitions when renaming symbols in autofixes (#10527) 2024-03-22 20:06:35 +00:00
PYI025_1.pyi Correctly handle references in `__all__` definitions when renaming symbols in autofixes (#10527) 2024-03-22 20:06:35 +00:00
PYI025_2.py Correctly handle references in `__all__` definitions when renaming symbols in autofixes (#10527) 2024-03-22 20:06:35 +00:00
PYI025_2.pyi Correctly handle references in `__all__` definitions when renaming symbols in autofixes (#10527) 2024-03-22 20:06:35 +00:00
PYI025_3.py Mark PYI025 fix as safe in more cases for stub files (#10547) 2024-03-24 16:11:48 +00:00
PYI025_3.pyi Mark PYI025 fix as safe in more cases for stub files (#10547) 2024-03-24 16:11:48 +00:00
PYI026.py [`flake8-pyi`] Allow simple assignments to `None` in enum class scopes (`PYI026`) (#11128) 2024-04-24 15:13:55 +01:00
PYI026.pyi [`flake8-pyi`] Allow simple assignments to `None` in enum class scopes (`PYI026`) (#11128) 2024-04-24 15:13:55 +01:00
PYI029.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI029.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI030.py [`flake8-pyi`] Mark `PYI030` fix unsafe when comments are deleted (#16322) 2025-02-23 21:22:14 +00:00
PYI030.pyi [`flake8-pyi`] Mark `PYI030` fix unsafe when comments are deleted (#16322) 2025-02-23 21:22:14 +00:00
PYI032.py [`flake8-pyi`] Teach various rules that annotations might be stringized (#12951) 2024-09-02 13:40:06 +00:00
PYI032.pyi [`flake8-pyi`] Teach various rules that annotations might be stringized (#12951) 2024-09-02 13:40:06 +00:00
PYI033.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI033.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI034.py [`flake8-pyi`] Fix PYI034 to not trigger on metaclasses (`PYI034`) (#20881) 2025-10-24 13:40:26 +00:00
PYI034.pyi [`flake8-pyi`] Fix PYI034 to not trigger on metaclasses (`PYI034`) (#20881) 2025-10-24 13:40:26 +00:00
PYI035.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI035.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI036.py [`flake8-pyi`] Allow overloaded `__exit__` and `__aexit__` definitions (`PYI036`) (#11057) 2024-04-24 15:48:52 +00:00
PYI036.pyi [`flake8-pyi`] Allow overloaded `__exit__` and `__aexit__` definitions (`PYI036`) (#11057) 2024-04-24 15:48:52 +00:00
PYI041_1.py [`flake8_pyi`] Fix `PYI041`'s fix causing TypeError with `None | None | ...` (#18637) 2025-06-20 15:04:51 -04:00
PYI041_1.pyi [`flake8_pyi`] Fix `PYI041`'s fix causing TypeError with `None | None | ...` (#18637) 2025-06-20 15:04:51 -04:00
PYI041_2.py [`flake8_pyi`] Fix `PYI041`'s fix causing TypeError with `None | None | ...` (#18637) 2025-06-20 15:04:51 -04:00
PYI042.py [`flake8-pyi`] Check PEP 695 type aliases for `snake-case-type-alias` and `t-suffixed-type-alias` (#8966) 2023-12-02 13:26:43 -05:00
PYI042.pyi [`flake8-pyi`] Check PEP 695 type aliases for `snake-case-type-alias` and `t-suffixed-type-alias` (#8966) 2023-12-02 13:26:43 -05:00
PYI043.py [`flake8-pyi`] Check PEP 695 type aliases for `snake-case-type-alias` and `t-suffixed-type-alias` (#8966) 2023-12-02 13:26:43 -05:00
PYI043.pyi [`flake8-pyi`] Check PEP 695 type aliases for `snake-case-type-alias` and `t-suffixed-type-alias` (#8966) 2023-12-02 13:26:43 -05:00
PYI044.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI044.pyi [`flake8-pyi`] - add autofix for `future-annotations-in-stub` (`PYI044`) (#12676) 2024-08-05 22:27:55 -04:00
PYI045.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI045.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI046.py [flake8-pyi] Fix false negative for PYI046 with unused generic protocols (#9405) 2024-01-05 12:56:04 -06:00
PYI046.pyi [flake8-pyi] Fix false negative for PYI046 with unused generic protocols (#9405) 2024-01-05 12:56:04 -06:00
PYI047.py [flake8-pyi] Fix PYI047 false negatives on PEP-695 type aliases (#9566) 2024-01-17 22:14:18 -05:00
PYI047.pyi [flake8-pyi] Fix PYI047 false negatives on PEP-695 type aliases (#9566) 2024-01-17 22:14:18 -05:00
PYI048.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI048.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI049.py [`flake8-pyi`] Ignore 'unused' private type dicts in class scopes (#9952) 2024-02-12 17:06:20 +00:00
PYI049.pyi [`flake8-pyi`] Ignore 'unused' private type dicts in class scopes (#9952) 2024-02-12 17:06:20 +00:00
PYI050.py [`flake8-pyi`] Teach various rules that annotations might be stringized (#12951) 2024-09-02 13:40:06 +00:00
PYI050.pyi [`flake8-pyi`] Teach various rules that annotations might be stringized (#12951) 2024-09-02 13:40:06 +00:00
PYI051.py Extend test cases for `flake8-pyi` (#14280) 2024-11-26 09:10:38 +01:00
PYI051.pyi Extend test cases for `flake8-pyi` (#14280) 2024-11-26 09:10:38 +01:00
PYI052.py [`flake8-pyi`] Respect local enum subclasses in `simple-defaults` (`PYI052`) (#8767) 2023-11-19 09:31:59 -05:00
PYI052.pyi [`flake8-pyi`] Respect local enum subclasses in `simple-defaults` (`PYI052`) (#8767) 2023-11-19 09:31:59 -05:00
PYI053.py Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
PYI053.pyi Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
PYI054.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI054.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI055.py [`flake8-pyi`] Avoid rewriting invalid type expressions in `unnecessary-type-union` (PYI055) (#14660) 2024-11-28 18:30:50 +00:00
PYI055.pyi [`flake8-pyi`] Avoid rewriting invalid type expressions in `unnecessary-type-union` (PYI055) (#14660) 2024-11-28 18:30:50 +00:00
PYI056.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI056.pyi Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
PYI057.py [flake8-pyi] Implement PYI057 (#11486) 2024-05-29 10:04:36 +00:00
PYI057.pyi [flake8-pyi] Implement PYI057 (#11486) 2024-05-29 10:04:36 +00:00
PYI058.py [flake8-pyi] Add autofix for PYI058 (#9355) 2024-01-03 11:11:16 -05:00
PYI058.pyi [flake8-pyi] Add autofix for PYI058 (#9355) 2024-01-03 11:11:16 -05:00
PYI059.py [`flake8-pyi`] Avoid syntax error in the case of starred and keyword arguments (`PYI059`) (#18611) 2025-06-10 12:27:06 -04:00
PYI059.pyi [`flake8-pyi`] Implement `PYI059` (`generic-not-last-base-class`) (#11233) 2024-05-07 10:07:56 +00:00
PYI061.py [`flake8-pyi`] Fix operator precedence by adding parentheses when needed (`PYI061`) (#20508) 2025-10-15 15:06:03 +00:00
PYI061.pyi [`flake8-pyi`] Ensure `Literal[None,] | Literal[None,]` is not autofixed to `None | None` (`PYI061`) (#17659) 2025-04-28 12:23:29 +01:00
PYI062.py Extend test cases for `flake8-pyi` (#14280) 2024-11-26 09:10:38 +01:00
PYI062.pyi Extend test cases for `flake8-pyi` (#14280) 2024-11-26 09:10:38 +01:00
PYI063.py [`flake8-pyi`] Implement `PYI063` (#11699) 2024-06-04 03:15:04 +00:00
PYI063.pyi [`flake8-pyi`] Implement `PYI063` (#11699) 2024-06-04 03:15:04 +00:00
PYI064.py [`flake8-pyi`] Implement `PYI064` (#11325) 2024-05-28 23:57:13 +00:00
PYI064.pyi [`flake8-pyi`] Implement `PYI064` (#11325) 2024-05-28 23:57:13 +00:00
PYI066.py [`flake8-pyi`] Implement `PYI066` (#11541) 2024-05-29 00:30:00 +00:00
PYI066.pyi [`flake8-pyi`] Implement `PYI066` (#11541) 2024-05-29 00:30:00 +00:00