Skip to content

Commit a5a2d02

Browse files
committed
fix: cleanup code
1 parent 5f226ca commit a5a2d02

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ lint.ignore = [
6363
"E501", # line too long
6464
"F403", # 'from module import *' used; unable to detect undefined names
6565
"E701", # multiple statements on one line (colon)
66-
"F401", # module imported but unused
6766
]
6867
line-length = 119
6968
lint.select = [

tests/test_dict2xml.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import datetime
2-
import numbers
32
from typing import TYPE_CHECKING, Any
43

54
import pytest
65

76
from json2xml import dicttoxml
87

98
if TYPE_CHECKING:
10-
from _pytest.capture import CaptureFixture
11-
from _pytest.fixtures import FixtureRequest
12-
from _pytest.logging import LogCaptureFixture
13-
from _pytest.monkeypatch import MonkeyPatch
14-
from pytest_mock.plugin import MockerFixture
9+
pass
1510

1611

1712
class TestDict2xml:

tests/test_json2xml.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
"""Tests for `json2xml` package."""
44

5-
import json
65
from pyexpat import ExpatError
76

87
import pytest

tests/test_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
)
1818

1919
if TYPE_CHECKING:
20-
from _pytest.capture import CaptureFixture
21-
from _pytest.fixtures import FixtureRequest
22-
from _pytest.logging import LogCaptureFixture
23-
from _pytest.monkeypatch import MonkeyPatch
24-
from pytest_mock.plugin import MockerFixture
20+
pass
2521

2622

2723
class TestExceptions:

0 commit comments

Comments
 (0)