ruff/crates/ruff_python_formatter/tests/snapshots
Dylan 008bbfdf5a
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks-instrumented (push) Blocked by required conditions
CI / benchmarks-walltime (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Disallow implicit concatenation of t-strings and other string types (#19485)
As of [this cpython PR](https://github.com/python/cpython/pull/135996),
it is not allowed to concatenate t-strings with non-t-strings,
implicitly or explicitly. Expressions such as `"foo" t"{bar}"` are now
syntax errors.

This PR updates some AST nodes and parsing to reflect this change.

The structural change is that `TStringPart` is no longer needed, since,
as in the case of `BytesStringLiteral`, the only possibilities are that
we have a single `TString` or a vector of such (representing an implicit
concatenation of t-strings). This removes a level of nesting from many
AST expressions (which is what all the snapshot changes reflect), and
simplifies some logic in the implementation of visitors, for example.

The other change of note is in the parser. When we meet an implicit
concatenation of string-like literals, we now count the number of
t-string literals. If these do not exhaust the total number of
implicitly concatenated pieces, then we emit a syntax error. To recover
from this syntax error, we encode any t-string pieces as _invalid_
string literals (which means we flag them as invalid, record their
range, and record the value as `""`). Note that if at least one of the
pieces is an f-string we prefer to parse the entire string as an
f-string; otherwise we parse it as a string.

This logic is exactly the same as how we currently treat
`BytesStringLiteral` parsing and error recovery - and carries with it
the same pros and cons.

Finally, note that I have not implemented any changes in the
implementation of the formatter. As far as I can tell, none are needed.
I did change a few of the fixtures so that we are always concatenating
t-strings with t-strings.
2025-07-27 12:41:03 +00:00
..
black_compatibility@cases__allow_empty_first_line.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__backslash_before_indent.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__class_blank_parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comment_after_escaped_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments6.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments9.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments_in_blocks.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__comments_in_double_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__composition.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__composition_no_trailing_comma.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__conditional_expression.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__docstring_no_string_normalization.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__dummy_implementations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__empty_lines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__expression.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__f_docstring.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__fmtonoff.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtonoff4.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtonoff5.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__fmtpass_imports.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtskip5.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fmtskip9.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__form_feeds.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__fstring.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__funcdef_return_type_trailing_comma.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__function_trailing_comma.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__ignore_pyi.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__keep_newline_after_match.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__line_ranges_diff_edge_case.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__line_ranges_fmt_off_decorator.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__long_strings_flag_disabled.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__multiline_consecutive_open_parentheses_ignore.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__nested_stub.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__no_blank_line_before_docstring.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pattern_matching_style.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pattern_matching_trailing_comma.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
black_compatibility@cases__pattern_matching_with_if_stmt.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__pep604_union_types_line_breaks.py.snap Fix typos found by codespell (#14863) 2024-12-09 09:32:12 +00:00
black_compatibility@cases__pep_572_remove_parens.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__pep_701.py.snap Disallow newlines in format specifiers of single quoted f- or t-strings (#18708) 2025-06-18 14:56:15 +02:00
black_compatibility@cases__prefer_rhs_split.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_cantfit.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_cantfit_string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_comments7.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_hug_parens_with_braces_and_square_brackets_no_ll1.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_dict_values.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_strings.py.snap Disallow single-line implicit concatenated strings (#13928) 2024-11-03 11:49:26 +00:00
black_compatibility@cases__preview_long_strings__east_asian_width.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_strings__edge_case.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_long_strings__regression.py.snap Disallow single-line implicit concatenated strings (#13928) 2024-11-03 11:49:26 +00:00
black_compatibility@cases__preview_long_strings__type_annotations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_multiline_strings.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__preview_return_annotation_brackets_string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__raw_docstring.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__raw_docstring_no_string_normalization.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_await_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_except_parens.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_for_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_newline_after_code_block_open.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__remove_redundant_parens_in_case_guard.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__return_annotation_brackets.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__single_line_format_skip_with_multiple_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__stub.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__torture.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__trailing_commas_in_leading_parts.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
black_compatibility@cases__tupleassign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@cases__type_param_defaults.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@miscellaneous__blackd_diff.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@miscellaneous__debug_visitor.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
black_compatibility@miscellaneous__string_quotes.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@blank_line_before_class_docstring.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@carriage_return__string.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@docstring.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@docstring_chaperones.py.snap Don't add chaperone space after escaped quote in triple quote (#17216) 2025-04-11 10:21:47 +02:00
format@docstring_code_examples.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@docstring_code_examples_crlf.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@docstring_code_examples_dynamic_line_width.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@docstring_newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@docstring_non_visible_characters.py.snap Fix typos found by codespell (#14863) 2024-12-09 09:32:12 +00:00
format@docstring_tab_indentation.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@empty_multiple_trailing_newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_now_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_trailing_newline.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@empty_whitespace.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__annotated_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__attribute.py.snap Fix unstable formatting of trailing end-of-line comments of parenthesized attribute values (#16187) 2025-02-18 08:43:51 +01:00
format@expression__await.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__binary.py.snap Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
format@expression__binary_implicit_string.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__binary_pow_spacing.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__boolean_operation.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__bytes.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@expression__call.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__compare.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__dict.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__dict_comp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__fstring.py.snap Disallow newlines in format specifiers of single quoted f- or t-strings (#18708) 2025-06-18 14:56:15 +02:00
format@expression__fstring_preview.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@expression__generator_exp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__hug.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__if.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__join_implicit_concatenated_string.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__join_implicit_concatenated_string_assignment.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__join_implicit_concatenated_string_preserve.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@expression__lambda.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__list.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__list_comp.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__named_expr.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__number.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__optional_parentheses_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__set_comp.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__slice.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__split_empty_brackets.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__starred.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__string.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@expression__subscript.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__tstring.py.snap Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
format@expression__tuple.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__unary.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__unsplittable.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@expression__yield.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@expression__yield_from.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@f-string-carriage-return-newline.py.snap Fix \r and \r\n handling in t- and f-string debug texts (#18673) 2025-06-15 06:53:06 +01:00
format@fmt_on_off__comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__empty_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__fmt_off_docstring.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@fmt_on_off__fmt_off_unclosed_deep_nested_trailing_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__fmt_off_unclosed_trailing_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__form_feed.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__indent.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@fmt_on_off__last_statement.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__mixed_space_and_tab.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@fmt_on_off__newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__no_fmt_on.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__off_on_off_on.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__simple.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__trailing_semicolon.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_on_off__yapf.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__decorators.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__docstrings.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__match.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__or_else.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__reason.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__trailing_semi.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@fmt_skip__type_params.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@form_feed.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@module_dangling_comment1.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@module_dangling_comment2.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@multiline_string_deviations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@newlines.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@newlines.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@notebook_docstring.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@parentheses__call_chains.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__expression_parentheses_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__nested.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__opening_parentheses_comment_empty.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@parentheses__opening_parentheses_comment_value.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@pattern__pattern_maybe_parenthesize.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
format@pattern_match_regression_brackets.py.snap Preserve tuple parentheses in case patterns (#18147) 2025-05-22 07:52:21 +02:00
format@preview.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@quote_style.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@range_formatting__ancestory.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__clause_header.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__comment_only_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__decorators.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__docstring_code_examples.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@range_formatting__empty_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__empty_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__end_of_file.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__fmt_on_off.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__indent.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@range_formatting__leading_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__leading_trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__module.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__parentheses.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__range_narrowing.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__regressions.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__same_line_body.py.snap Fix typos found by codespell (#14863) 2024-12-09 09:32:12 +00:00
format@range_formatting__stub.pyi.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@range_formatting__trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@range_formatting__whitespace_only_range.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@skip_magic_trailing_comma.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@statement__ann_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__assert.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__assignment_split_value_first.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__aug_assign.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__break.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__class_definition.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__delete.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__ellipsis.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__for.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__function.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__global.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__if.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__import.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__import_from.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__long_type_annotations.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__match.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__module_comment.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__nonlocal.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__raise.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__return.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__return_annotation.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__return_type_no_parameters.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__return_type_parameters.py.snap Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
format@statement__stub_functions_trailing_comments.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__top_level.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__top_level.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__try.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__type_alias.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__while.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@statement__with.py.snap [formatter] Stabilize fix for single-with-item formatting with trailing comment (#16603) 2025-03-13 15:37:37 +01:00
format@statement__with_39.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@stub_files__blank_line_after_nested_stub_class.pyi.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@stub_files__blank_line_after_nested_stub_class_eof.pyi.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@stub_files__comments.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__decorated_class_after_function.pyi.snap [formatter] Fix missing blank lines before decorated classes in .pyi files (#18888) 2025-06-24 16:25:44 +02:00
format@stub_files__nesting.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__suite.pyi.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
format@stub_files__top_level.pyi.snap [formatter] Fix missing blank lines before decorated classes in .pyi files (#18888) 2025-06-24 16:25:44 +02:00
format@tab_width.py.snap Use ast::PythonVersion internally in the formatter and linter (#16170) 2025-02-18 12:03:13 -05:00
format@trailing_comments.py.snap Treat ty: comments as pragma comments (#18532) 2025-06-07 16:02:43 +02:00
format@trivia.py.snap Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00