Skip to content

Commit 5f35e85

Browse files
kloczekmvantellingen
authored andcommitted
filter all code over ruff to drop unused imports
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
1 parent d59dd13 commit 5f35e85

18 files changed

Lines changed: 2 additions & 24 deletions

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys
15-
import os
16-
import pkg_resources
1714

1815
# If extensions (or modules to document with autodoc) are in another directory,
1916
# add these directories to sys.path here. If the directory is relative to the

examples/async_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import asyncio
2-
import httpx
32
import time
43

54
import zeep
65

7-
from zeep.transports import AsyncTransport
86

97

108
def run_async():

src/zeep/cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import logging
55
import os
66
import threading
7-
import typing
87
from contextlib import contextmanager
98

109
import platformdirs

src/zeep/transports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _load_remote_data(self, url):
211211

212212
try:
213213
response.raise_for_status()
214-
except httpx.HTTPStatusError as exc:
214+
except httpx.HTTPStatusError:
215215
raise TransportError(status_code=response.status_code)
216216
return result
217217

src/zeep/wsdl/attachments.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import base64
8-
import sys
98

109
from functools import cached_property
1110

src/zeep/wsdl/wsdl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
absolute_location,
1919
is_relative_path,
2020
load_external,
21-
load_external_async,
2221
)
2322
from zeep.settings import Settings
2423
from zeep.utils import findall_multiple_ns

src/zeep/xsd/elements/indicators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@
1313
"""
1414
import copy
1515
import operator
16-
import sys
17-
import typing
1816
from collections import OrderedDict, defaultdict, deque
1917

2018
from functools import cached_property as threaded_cached_property
2119

22-
from lxml import etree
2320

2421
from zeep.exceptions import UnexpectedElementError, ValidationError
2522
from zeep.xsd.const import NotSet, SkipValue

src/zeep/xsd/types/any.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
import sys
32
import typing
43

54
from functools import cached_property as threaded_cached_property

src/zeep/xsd/types/complex.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
import copy
44
import logging
5-
import sys
65
import typing
76
from collections import OrderedDict, deque
87
from itertools import chain
9-
from typing import Optional
108

119
from functools import cached_property as threaded_cached_property
1210

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21

32
import pytest
43

0 commit comments

Comments
 (0)