Show source-type in formatter snapshot tests with options (#9699)

This commit is contained in:
Micha Reiser 2024-01-30 11:08:50 +01:00 committed by GitHub
parent dacda0f202
commit 3c7fea769c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 51 additions and 2 deletions

View file

@ -381,7 +381,8 @@ magic-trailing-comma = {magic_trailing_comma:?}
docstring-code = {docstring_code:?}
docstring-code-line-width = {docstring_code_line_width:?}
preview = {preview:?}
target_version = {target_version:?}"#,
target_version = {target_version:?}
source_type = {source_type:?}"#,
indent_style = self.0.indent_style(),
indent_width = self.0.indent_width().value(),
line_width = self.0.line_width().value(),
@ -391,7 +392,8 @@ target_version = {target_version:?}"#,
docstring_code = self.0.docstring_code(),
docstring_code_line_width = self.0.docstring_code_line_width(),
preview = self.0.preview(),
target_version = self.0.target_version()
target_version = self.0.target_version(),
source_type = self.0.source_type()
)
}
}