Accept suggestions from new toolchain · rec/fixo@b2307f4

3 files changed

lines changed

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:

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

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