Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flake8-pyi] Implement PYI025 #4791

Merged
merged 6 commits into from
Jun 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adapt snapshot to new autofix message
  • Loading branch information
qdegraaf committed Jun 1, 2023
commit 240b23b4a766b9deaaf24f80dadcec1801fa5a59
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PYI025.pyi:4:29: PYI025 [*] Always alias collections.abc.Set when importing it,
4 | from collections.abc import Set # PYI025
| ^^^ PYI025
|
= help: Replace `Set` with `Set as AbstractSet`
= help: Alias `Set` to `AbstractSet`

ℹ Fix
1 1 | from collections.abc import Set as AbstractSet # Ok
Expand All @@ -27,7 +27,7 @@ PYI025.pyi:10:5: PYI025 [*] Always alias collections.abc.Set when importing it,
13 | ValuesView
14 | )
|
= help: Replace `Set` with `Set as AbstractSet`
= help: Alias `Set` to `AbstractSet`

ℹ Fix
7 7 | from collections.abc import (
Expand Down
Loading