-
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.
- Loading branch information
1 parent
b19e86e
commit bf5749a
Showing
12 changed files
with
133 additions
and
131 deletions.
There are no files selected for viewing
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
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
22 changes: 11 additions & 11 deletions
22
...s__flake8_type_checking__tests__quote_runtime-import-in-type-checking-block_quote.py.snap
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,22 +1,22 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_type_checking/mod.rs | ||
--- | ||
quote.py:47:28: TCH004 [*] Quote references to `pandas.DataFrame`. Import is not available at runtime. | ||
quote.py:64:28: TCH004 [*] Quote references to `pandas.DataFrame`. Import is not available at runtime. | ||
| | ||
46 | if TYPE_CHECKING: | ||
47 | from pandas import DataFrame | ||
63 | if TYPE_CHECKING: | ||
64 | from pandas import DataFrame | ||
| ^^^^^^^^^ TCH004 | ||
48 | | ||
49 | def func(value: DataFrame): | ||
65 | | ||
66 | def func(value: DataFrame): | ||
| | ||
= help: Quote references | ||
|
||
ℹ Unsafe fix | ||
46 46 | if TYPE_CHECKING: | ||
47 47 | from pandas import DataFrame | ||
48 48 | | ||
49 |- def func(value: DataFrame): | ||
49 |+ def func(value: "DataFrame"): | ||
50 50 | ... | ||
63 63 | if TYPE_CHECKING: | ||
64 64 | from pandas import DataFrame | ||
65 65 | | ||
66 |- def func(value: DataFrame): | ||
66 |+ def func(value: "DataFrame"): | ||
67 67 | ... | ||
|
||
|
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.