-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use inline flags for test cases (#3931)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
- Loading branch information
1 parent
715f60c
commit a69bda3
Showing
132 changed files
with
206 additions
and
220 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...eous/docstring_no_string_normalization.py → ...ases/docstring_no_string_normalization.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --skip-string-normalization | ||
class ALonelyClass: | ||
''' | ||
A multiline class docstring. | ||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...string_preview_no_string_normalization.py → ...string_preview_no_string_normalization.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...310/funcdef_return_type_trailing_comma.py → ...ses/funcdef_return_type_trailing_comma.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/simple_cases/ignore_pyi.py → tests/data/cases/ignore_pyi.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --pyi | ||
def f(): # type: ignore | ||
... | ||
|
||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/miscellaneous/linelength6.py → tests/data/cases/linelength6.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --line-length=6 | ||
# Regression test for #3427, which reproes only with line length <= 6 | ||
def f(): | ||
""" | ||
|
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/miscellaneous/nested_stub.pyi → tests/data/cases/nested_stub.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --pyi --preview | ||
import sys | ||
|
||
class Outer: | ||
|
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
.../py_310/parenthesized_context_managers.py → ...a/cases/parenthesized_context_managers.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
with (CtxManager() as example): | ||
... | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...s/data/py_310/pattern_matching_complex.py → tests/data/cases/pattern_matching_complex.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
# Cases sampled from Lib/test/test_patma.py | ||
|
||
# case black_test_patma_098 | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/py_310/pattern_matching_extras.py → tests/data/cases/pattern_matching_extras.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
import match | ||
|
||
match something: | ||
|
1 change: 1 addition & 0 deletions
1
...s/data/py_310/pattern_matching_generic.py → tests/data/cases/pattern_matching_generic.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
re.match() | ||
match = a | ||
with match() as match: | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/py_310/pattern_matching_simple.py → tests/data/cases/pattern_matching_simple.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
# Cases sampled from PEP 636 examples | ||
|
||
match command.split(): | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/py_310/pattern_matching_style.py → tests/data/cases/pattern_matching_style.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
match something: | ||
case b(): print(1+1) | ||
case c( | ||
|
1 change: 1 addition & 0 deletions
1
..._py_310/pep604_union_types_line_breaks.py → ...a/cases/pep604_union_types_line_breaks.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
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,3 +1,4 @@ | ||
# flags: --minimum-version=3.8 | ||
def positional_only_arg(a, /): | ||
pass | ||
|
||
|
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,3 +1,4 @@ | ||
# flags: --minimum-version=3.8 | ||
(a := 1) | ||
(a := a) | ||
if (match := pattern.search(data)) is None: | ||
|
1 change: 1 addition & 0 deletions
1
...data/fast/pep_572_do_not_remove_parens.py → ...ata/cases/pep_572_do_not_remove_parens.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
1 change: 1 addition & 0 deletions
1
tests/data/py_310/pep_572_py310.py → tests/data/cases/pep_572_py310.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
1 change: 1 addition & 0 deletions
1
tests/data/py_39/pep_572_py39.py → tests/data/cases/pep_572_py39.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
1 change: 1 addition & 0 deletions
1
tests/data/py_38/pep_572_remove_parens.py → tests/data/cases/pep_572_remove_parens.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.8 | ||
if (foo := 0): | ||
pass | ||
|
||
|
File renamed without changes.
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,3 +1,4 @@ | ||
# flags: --minimum-version=3.11 | ||
A[*b] | ||
A[*b] = 1 | ||
A | ||
|
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,3 +1,4 @@ | ||
# flags: --minimum-version=3.11 | ||
try: | ||
raise OSError("blah") | ||
except* ExceptionGroup as e: | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/py_311/pep_654_style.py → tests/data/cases/pep_654_style.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.11 | ||
try: | ||
raise OSError("blah") | ||
except * ExceptionGroup as e: | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/miscellaneous/power_op_newline.py → tests/data/cases/power_op_newline.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --line-length=0 | ||
importA;()<<0**0# | ||
|
||
# output | ||
|
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/preview/async_stmts.py → tests/data/cases/preview_async_stmts.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
async def func() -> (int): | ||
return 0 | ||
|
||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/cantfit.py → tests/data/cases/preview_cantfit.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
1 change: 1 addition & 0 deletions
1
tests/data/preview/comments7.py → tests/data/cases/preview_comments7.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
from .config import ( | ||
Any, | ||
Bool, | ||
|
1 change: 1 addition & 0 deletions
1
...review_context_managers/targeting_py38.py → ...data/cases/preview_context_managers_38.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
1 change: 1 addition & 0 deletions
1
...review_context_managers/targeting_py39.py → ...data/cases/preview_context_managers_39.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
1 change: 1 addition & 0 deletions
1
...ext_managers/auto_detect/features_3_10.py → ...review_context_managers_autodetect_310.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview --minimum-version=3.10 | ||
# This file uses pattern matching introduced in Python 3.10. | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
...ext_managers/auto_detect/features_3_11.py → ...review_context_managers_autodetect_311.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview --minimum-version=3.11 | ||
# This file uses except* clause in Python 3.11. | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
...text_managers/auto_detect/features_3_8.py → ...preview_context_managers_autodetect_38.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
# This file doesn't use any Python 3.9+ only grammars. | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
...text_managers/auto_detect/features_3_9.py → ...preview_context_managers_autodetect_39.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
1 change: 1 addition & 0 deletions
1
tests/data/preview/dummy_implementations.py → ...ta/cases/preview_dummy_implementations.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
from typing import NoReturn, Protocol, Union, overload | ||
|
||
|
||
|
1 change: 1 addition & 0 deletions
1
...data/preview/format_unicode_escape_seq.py → ...ases/preview_format_unicode_escape_seq.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
x = "\x1F" | ||
x = "\\x1B" | ||
x = "\\\x1B" | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/long_dict_values.py → tests/data/cases/preview_long_dict_values.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
1 change: 1 addition & 0 deletions
1
tests/data/preview/long_strings.py → tests/data/cases/preview_long_strings.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
1 change: 1 addition & 0 deletions
1
...preview/long_strings__east_asian_width.py → ...preview_long_strings__east_asian_width.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
1 change: 1 addition & 0 deletions
1
...s/data/preview/long_strings__edge_case.py → .../cases/preview_long_strings__edge_case.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
1 change: 1 addition & 0 deletions
1
.../data/preview/long_strings__regression.py → ...cases/preview_long_strings__regression.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
class A: | ||
def foo(): | ||
result = type(message)("") | ||
|
1 change: 1 addition & 0 deletions
1
...preview/long_strings__type_annotations.py → ...preview_long_strings__type_annotations.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
def func( | ||
arg1, | ||
arg2, | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/multiline_strings.py → ...s/data/cases/preview_multiline_strings.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
"""cow | ||
say""", | ||
call(3, "dogsay", textwrap.dedent("""dove | ||
|
1 change: 1 addition & 0 deletions
1
...preview/no_blank_line_before_docstring.py → ...preview_no_blank_line_before_docstring.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
def line_before_docstring(): | ||
|
||
"""Please move me up""" | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/pep_572.py → tests/data/cases/preview_pep_572.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
x[(a:=0):] | ||
x[:(a:=0)] | ||
|
||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/percent_precedence.py → .../data/cases/preview_percent_precedence.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
("" % a) ** 2 | ||
("" % a)[0] | ||
("" % a)() | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview/prefer_rhs_split.py → tests/data/cases/preview_prefer_rhs_split.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
1 change: 1 addition & 0 deletions
1
...view/return_annotation_brackets_string.py → ...view_return_annotation_brackets_string.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
1 change: 1 addition & 0 deletions
1
tests/data/preview/trailing_comma.py → tests/data/cases/preview_trailing_comma.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview | ||
e = { | ||
"a": fun(msg, "ts"), | ||
"longggggggggggggggid": ..., | ||
|
1 change: 1 addition & 0 deletions
1
tests/data/preview_py_310/pep_572.py → tests/data/cases/py310_pep572.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --preview --minimum-version=3.10 | ||
x[a:=0] | ||
x[a := 0] | ||
x[a := 0, b := 1] | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...data/py_310/remove_newline_after_match.py → .../data/cases/remove_newline_after_match.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
def http_status(status): | ||
|
||
match status: | ||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/py_39/remove_with_brackets.py → tests/data/cases/remove_with_brackets.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.9 | ||
with (open("bla.txt")): | ||
pass | ||
|
||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...simple_cases/skip_magic_trailing_comma.py → ...s/data/cases/skip_magic_trailing_comma.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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/py_310/starred_for_target.py → tests/data/cases/starred_for_target.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.10 | ||
for x in *a, *b: | ||
print(x) | ||
|
||
|
File renamed without changes.
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,3 +1,4 @@ | ||
# flags: --pyi | ||
X: int | ||
|
||
def f(): ... | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/py_312/type_aliases.py → tests/data/cases/type_aliases.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.12 | ||
type A=int | ||
type Gen[T]=list[T] | ||
|
||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/data/py_312/type_params.py → tests/data/cases/type_params.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flags: --minimum-version=3.12 | ||
def func [T ](): pass | ||
async def func [ T ] (): pass | ||
class C[ T ] : pass | ||
|
File renamed without changes.
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,3 +1,4 @@ | ||
# flags: --pyi | ||
from typing import Union | ||
|
||
@bird | ||
|
Oops, something went wrong.