core: cleanup/sort imports according to ruff check --select I
This commit is contained in:
parent
7023088d13
commit
7bfce72b7c
45 changed files with 235 additions and 170 deletions
|
@ -94,6 +94,8 @@ class Wvalue(Zoomable):
|
|||
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
|
||||
def _wrap(j, parent=None) -> Tuple[Zoomable, List[Zoomable]]:
|
||||
res: Zoomable
|
||||
cc: List[Zoomable]
|
||||
|
@ -123,6 +125,7 @@ def _wrap(j, parent=None) -> Tuple[Zoomable, List[Zoomable]]:
|
|||
from contextlib import contextmanager
|
||||
from typing import Iterator
|
||||
|
||||
|
||||
class UnconsumedError(Exception):
|
||||
pass
|
||||
|
||||
|
@ -146,6 +149,8 @@ Expected {c} to be fully consumed by the parser.
|
|||
|
||||
|
||||
from typing import cast
|
||||
|
||||
|
||||
def test_unconsumed() -> None:
|
||||
import pytest
|
||||
with pytest.raises(UnconsumedError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue