Skip to content

Commit c54a641

Browse files
committed
ruff check
1 parent f20e367 commit c54a641

7 files changed

Lines changed: 7 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
23
from collections.abc import Callable
34

45
import pytest

tests/test_build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import datetime
2+
23
from collections.abc import Callable
34

45
from tomlkit import aot

tests/test_items.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import copy
22
import math
33
import pickle
4+
45
from collections.abc import Callable
56
from datetime import date
67
from datetime import datetime

tests/test_toml_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
2+
23
from collections.abc import Callable
34
from pathlib import Path
4-
from typing import Any
55

66
from tomlkit.toml_document import TOMLDocument
77
from tomlkit.toml_file import TOMLFile

tests/test_toml_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
34
from typing import Any
45
from typing import Callable
56

tomlkit/_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import contextlib
44
import sys
55

6+
67
PY38 = sys.version_info >= (3, 8)
78

89

tomlkit/items.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from enum import Enum
2020
from typing import TYPE_CHECKING
2121
from typing import Any
22-
from typing import Any
2322
from typing import TypeVar
2423
from typing import overload
2524

@@ -1009,7 +1008,7 @@ def __bool__(self) -> bool:
10091008

10101009
def __eq__(self, other: object) -> bool:
10111010
if not isinstance(other, bool):
1012-
return NotImplemented
1011+
return NotImplemented
10131012

10141013
return other == self._value
10151014

0 commit comments

Comments
 (0)