File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments