File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from queue import Empty
44from queue import Queue
5- from ssl import SSLContext
5+ from typing import TYPE_CHECKING
66from typing import Any
77from typing import Dict
88from typing import Mapping
99from typing import Optional
1010from typing import Pattern
1111from typing import Union
1212
13- from werkzeug .wrappers import Request
14- from werkzeug .wrappers import Response
15-
1613from pytest_httpserver .httpserver import METHOD_ALL
1714from pytest_httpserver .httpserver import UNDEFINED
1815from pytest_httpserver .httpserver import HeaderValueMatcher
2118from pytest_httpserver .httpserver import RequestHandlerBase
2219from pytest_httpserver .httpserver import URIPattern
2320
21+ if TYPE_CHECKING :
22+ from ssl import SSLContext
23+
24+ from werkzeug .wrappers import Request
25+ from werkzeug .wrappers import Response
26+
2427
2528class BlockingRequestHandler (RequestHandlerBase ):
2629 """
Original file line number Diff line number Diff line change 1313from contextlib import suppress
1414from copy import copy
1515from enum import Enum
16- from ssl import SSLContext
16+ from typing import TYPE_CHECKING
1717from typing import Any
1818from typing import Callable
1919from typing import Iterable
3232from werkzeug .wrappers import Request
3333from werkzeug .wrappers import Response
3434
35+ if TYPE_CHECKING :
36+ from ssl import SSLContext
37+
3538URI_DEFAULT = ""
3639METHOD_ALL = "__ALL"
3740
You can’t perform that action at this time.
0 commit comments