Skip to content

Commit 1bbdda5

Browse files
committed
Work around formatting inconsistency between isort and Ruff
1 parent 56b051d commit 1bbdda5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/dataclass_binder/_impl.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
from typing import TYPE_CHECKING, Any, BinaryIO, ClassVar, Generic, TypeVar, Union, cast, get_args, get_origin, overload
3030
from weakref import WeakKeyDictionary
3131

32-
if sys.version_info < (3, 11):
33-
import tomli as tomllib # pragma: no cover
32+
if sys.version_info < (3, 11): # pragma: no cover
33+
import tomli as tomllib
3434

3535
if TYPE_CHECKING:
3636

@@ -41,11 +41,10 @@ class ReprEnum(Enum):
4141
from enum import IntEnum, IntFlag
4242

4343
ReprEnum = IntEnum | IntFlag
44-
else:
44+
else: # pragma: no cover
45+
import tomllib # noqa: I001
4546
from enum import ReprEnum
4647

47-
import tomllib # pragma: no cover
48-
4948

5049
def _collect_type(field_type: type, context: str) -> type | Binder[Any]:
5150
"""

0 commit comments

Comments
 (0)