mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Fix fmt:off
with trailing child comment (#8234)
This commit is contained in:
parent
3c3d9ab173
commit
6983d96d27
6 changed files with 87 additions and 7 deletions
|
@ -0,0 +1,8 @@
|
|||
# Regression test for https://github.com/astral-sh/ruff/issues/8211
|
||||
|
||||
# fmt: off
|
||||
from dataclasses import dataclass
|
||||
|
||||
if True:
|
||||
if False:
|
||||
x: int # Optional[int]
|
|
@ -0,0 +1,8 @@
|
|||
# Regression test for https://github.com/astral-sh/ruff/issues/8211
|
||||
|
||||
# fmt: off
|
||||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class A:
|
||||
x: int # Optional[int]
|
Loading…
Add table
Add a link
Reference in a new issue