forked from astral-sh/ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
flake8-pyi
] Fix incorrect behaviour of `custom-typevar-return-type…
…` preview-mode autofix if `typing` was already imported (`PYI019`) (astral-sh#15853)
- Loading branch information
1 parent
b2cb757
commit 0d191a1
Showing
10 changed files
with
153 additions
and
119 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_1.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import typing | ||
|
||
class F: | ||
def m[S](self: S) -> S: ... |
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
Oops, something went wrong.