update snapshot

This commit is contained in:
dylwil3 2025-09-15 09:46:58 -05:00
parent 2bccbfb30c
commit 4fe83ce35e

View file

@ -175,6 +175,41 @@ result = (
# dangling before dot
.b # trailing end-of-line
)
# Regression test for https://github.com/astral-sh/ruff/issues/19350
variable = (
(something) # a comment
.first_method("some string")
)
variable = (
something # a commentdddddddddddddddddddddddddddddd
.first_method("some string")
)
if (
(something) # a commentdddddddddddddddddddddddddddddd
.first_method("some string")
): pass
variable = (
(something # a comment
).first_method("some string")
)
if (
(something # a comment
).first_method("some string") # second comment
): pass
variable = ( # 1
# 2
(something) # 3
# 4
.first_method("some string") # 5
# 6
) # 7
```
## Output
@ -328,4 +363,39 @@ result = (
# dangling before dot
.b # trailing end-of-line
)
# Regression test for https://github.com/astral-sh/ruff/issues/19350
variable = (
(something) # a comment
.first_method("some string")
)
variable = something.first_method( # a commentdddddddddddddddddddddddddddddd
"some string"
)
if (
(something) # a commentdddddddddddddddddddddddddddddd
.first_method("some string")
):
pass
variable = (
something # a comment
).first_method("some string")
if (
(
something # a comment
).first_method("some string") # second comment
):
pass
variable = ( # 1
# 2
(something) # 3
# 4
.first_method("some string") # 5
# 6
) # 7
```