-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert to safe fix, change fix title, and use real imports
- Loading branch information
1 parent
ad41fab
commit bdf4c2d
Showing
4 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI044.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Bad import. | ||
from __future__ import annotations # PYI044. | ||
from __future__ import annotations, OtherThing # PYI044. | ||
from __future__ import annotations, with_statement # PYI044. | ||
|
||
# Good imports. | ||
from __future__ import Something | ||
from __future__ import with_statement | ||
import sys | ||
from socket import AF_INET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters