-
Notifications
You must be signed in to change notification settings - Fork 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
febc69a
commit 4ebec4e
Showing
9 changed files
with
550 additions
and
94 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote.py
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,40 @@ | ||
def f(): | ||
from pandas import DataFrame | ||
|
||
def baz() -> DataFrame: | ||
... | ||
|
||
|
||
def f(): | ||
from pandas import DataFrame | ||
|
||
def baz() -> DataFrame[int]: | ||
... | ||
|
||
|
||
def f(): | ||
from pandas import DataFrame | ||
|
||
def baz() -> DataFrame["int"]: | ||
... | ||
|
||
|
||
def f(): | ||
import pandas as pd | ||
|
||
def baz() -> pd.DataFrame: | ||
... | ||
|
||
|
||
def f(): | ||
import pandas as pd | ||
|
||
def baz() -> pd.DataFrame.Extra: | ||
... | ||
|
||
|
||
def f(): | ||
import pandas as pd | ||
|
||
def baz() -> pd.DataFrame | int: | ||
... |
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.