black/tests/data
Michael J. Sullivan 6fe800933d Fix issue with type comments on lines with trailing commas (#1058)
The code introduced in #1027 to detect whether a type comment appeared
after a regular comment in a Line would spuriously misfire when a leaf
was in the comments dict but had an empty list of comments. This can
occur as an artifact of how comments on trailing commas are handled,
it seems.

(This was discovered trying to test black out on mypy.)
2019-10-10 11:50:51 -07:00
..
include_exclude_tests/b Move test data to data 2018-06-06 15:48:38 -07:00
async_as_identifier.py Add support for always tokenizing async/await as keywords 2019-05-09 17:59:29 +02:00
beginning_backslash.py Fix unstable format involving backslash + whitespace at beginning of file (#948) 2019-08-04 10:03:19 +01:00
bracketmatch.py fix bracket match bug (#470) 2018-08-23 12:52:07 +01:00
cantfit.py Pin comment to single leaf in invisible parens (#872) 2019-06-15 07:29:09 +01:00
class_blank_parentheses.py Move test data to data 2018-06-06 15:48:38 -07:00
class_methods_new_line.py Move test data to data 2018-06-06 15:48:38 -07:00
comment_after_escaped_newline.py Avoid unstable formatting when comment follows escaped newline. (#839). Fixes #767. 2019-05-08 09:53:20 -04:00
comments2.py Fix issue with type comments on lines with trailing commas (#1058) 2019-10-10 11:50:51 -07:00
comments3.py Fix mangling pweave and Spyder IDE special comments 2018-09-26 09:42:42 -07:00
comments4.py Add trailing comma for single as imports, too 2018-09-26 08:26:35 -07:00
comments5.py Move test data to data 2018-06-06 15:48:38 -07:00
comments6.py Don't break long lines when type: ignore is present (#1040) 2019-10-02 18:57:49 -07:00
comments7.py Don't break long lines when type: ignore is present (#1040) 2019-10-02 18:57:49 -07:00
comments.py Avoid unstable formatting when comment follows escaped newline. (#839). Fixes #767. 2019-05-08 09:53:20 -04:00
composition.py fix incorrect call (#762) 2019-03-15 18:39:08 +01:00
debug_visitor.out Move INDENT value to the postponed prefix 2018-06-19 20:44:47 -07:00
debug_visitor.py Move test data to data 2018-06-06 15:48:38 -07:00
empty_lines.py Move test data to data 2018-06-06 15:48:38 -07:00
empty_pyproject.toml Support pyproject.toml 2018-06-06 17:02:10 -07:00
expression.diff Don't break long lines when type: ignore is present (#1040) 2019-10-02 18:57:49 -07:00
expression.py Don't break long lines when type: ignore is present (#1040) 2019-10-02 18:57:49 -07:00
fmtonoff2.py Move INDENT value to the postponed prefix 2018-06-19 20:44:47 -07:00
fmtonoff.py Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
force_py36.py Move test data to data 2018-06-06 15:48:38 -07:00
force_pyi.py Move test data to data 2018-06-06 15:48:38 -07:00
fstring.py Fix string normalization sometimes producing invalid fstrings (#327) 2018-06-09 12:30:49 -07:00
function2.py Move test data to data 2018-06-06 15:48:38 -07:00
function_trailing_comma.py Fix trailing comma for function with one arg (#880) (#891) 2019-06-14 21:49:49 -07:00
function.py Remove numeric underscore normalization (#696) 2019-02-06 19:16:49 -08:00
import_spacing.py Add trailing comma when a single import doesn't fit on a line. (#504) 2018-09-26 13:26:50 +01:00
numeric_literals_py2.py Uppercase digits in hex literals (#530) 2018-09-25 16:01:56 +01:00
numeric_literals_skip_underscores.py Add underscores to numeric literals with more than six digits (#529) 2018-09-26 12:32:11 +01:00
numeric_literals.py Remove numeric underscore normalization (#696) 2019-02-06 19:16:49 -08:00
pep_570.py Support PEP-570 (positional only arguments) (#946) 2019-07-28 16:17:33 +01:00
pep_572.py fix tests 2019-09-18 13:33:14 +01:00
python2_print_function.py Fix print() function on Python 2 (#754) 2019-03-14 16:42:54 -07:00
python2_unicode_literals.py Improve get_future_imports implementation. 2018-07-02 17:49:47 +01:00
python2.py Move test data to data 2018-06-06 15:48:38 -07:00
python37.py Move tokenizer config onto grammar, rename flag 2019-05-09 17:59:29 +02:00
remove_parens.py Fix unstable formatting involving unwrapping multiple parentheses (#836) (#961) 2019-08-23 15:51:29 +01:00
slices.py Move test data to data 2018-06-06 15:48:38 -07:00
string_prefixes.py Move test data to data 2018-06-06 15:48:38 -07:00
string_quotes.py Don't introduce quotes to f-string sub-expressions on string boundaries (#871) 2019-05-26 11:58:00 +02:00
stub.pyi Add blank line after constants in stub file (#360) 2018-06-16 11:53:45 -07:00
tupleassign.py Add parentheses around tuple unpack assignment (#832) 2019-05-07 09:51:28 -04:00