Skip to content

Commit b2307f4

Browse files
committed
Accept suggestions from new toolchain
1 parent 80b82e2 commit b2307f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fixo/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def __call__(self, prefix: str, address: Any) -> _T:
2929

3030
@cache
3131
def import_symbol(address: str) -> Any:
32-
f"""Import a specific symbol: if it start with a `.` make it relative to
33-
${BASE_ADDRESS}"""
32+
"""Import a specific symbol: if it start with a `.` make it relative to fixo.rules"""
33+
3434
if address.startswith('.'):
3535
address = BASE_ADDRESS + address
3636
try:

fixo/rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import dataclasses as dc
44
import re
5-
from collections.abc import Sequence
5+
from collections.abc import Iterator, Sequence
66
from functools import cached_property
77
from pathlib import Path
8-
from typing import Any, Iterator, Protocol, runtime_checkable
8+
from typing import Any, Protocol, runtime_checkable
99

1010
from .blocks.python_file import PythonFile
1111
from .importer import Importer, import_dict

fixo/rules/pyright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Any
77

88
from ..blocks.python_file import PythonFile
9-
from ..message import Category, LineCharacter, Message
9+
from ..message import LineCharacter, Message
1010
from ..rule import Rule
1111
from ..type_edit import TypeEdit
1212

0 commit comments

Comments
 (0)