Skip to content

Commit 612f18e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6321b84 commit 612f18e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from types import MappingProxyType
99
from typing import Any
1010
from typing import Callable
11-
from typing import Type
1211

1312
import pytest
1413

@@ -128,7 +127,7 @@ def test_parsed_document_are_properly_json_representable(
128127
],
129128
)
130129
def test_parse_raises_errors_for_invalid_toml_files(
131-
invalid_example: Callable[[str], str], error: Type[Exception], example_name: str
130+
invalid_example: Callable[[str], str], error: type[Exception], example_name: str
132131
) -> None:
133132
with pytest.raises(error):
134133
parse(invalid_example(example_name))

tomlkit/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
if TYPE_CHECKING:
3838
from typing import Protocol
3939

40-
from tomlkit.container import OutOfOrderTableProxy
4140
from tomlkit import container
41+
from tomlkit.container import OutOfOrderTableProxy
4242

4343
class Encoder(Protocol):
4444
def __call__(self, __value: Any, /) -> Item: ...

0 commit comments

Comments
 (0)