Skip to content

Commit 07cdbd6

Browse files
committed
Revert "Fix docs"
This reverts commit a562b54.
1 parent 3994c60 commit 07cdbd6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

docs/guide.rst

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -573,23 +573,16 @@ The following options are valid for the main ``tool.usort`` table:
573573
type checker annotations or linter suppressions that are specific to individual
574574
imports::
575575

576-
# Original Code
577-
from example._C import _linalg # pyrefly: ignore [missing-attribute]
578-
from example._C import _LinAlgError as LinAlgError # pyrefly: ignore
579-
from example._C import _add_docstr
580-
581-
# Without preserving inline comments
582-
from example._C import ( # pyrefly: ignore [missing-attribute]
583-
_add_docstr,
584-
_linealg,
585-
_LineAlgError as LinAlgError, # pyrefly: ignore
586-
)
576+
# Before
577+
from torch._C import _linalg # pyrefly:
578+
from torch._C import _LinAlgError as LinAlgError # pyrefly: ignore
579+
from torch._C import _add_docstr
587580

588581
# After (preserve_inline_comments = true)
589-
from example._C import (
582+
from torch._C import (
590583
_add_docstr,
591-
_linealg, # pyrefly: ignore [missing-attribute]
592-
_LineAlgError as LineAlgError, # pyrefly: ignore
584+
_linalg, # pyrefly:
585+
_LinAlgError as LinAlgError, # pyrefly: ignore
593586
)
594587

595588
Note that this option only affects inline comments on single-line imports.

0 commit comments

Comments
 (0)