Skip to content

Commit 2ea2286

Browse files
authored
Import ssl on demand (#3401)
1 parent 1805ee0 commit 2ea2286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

httpx/_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from __future__ import annotations
22

3-
import ssl
43
import typing
54

65
from ._models import Headers
76
from ._types import HeaderTypes, TimeoutTypes
87
from ._urls import URL
98

9+
if typing.TYPE_CHECKING:
10+
import ssl # pragma: no cover
11+
1012
__all__ = ["Limits", "Proxy", "Timeout", "create_ssl_context"]
1113

1214

0 commit comments

Comments
 (0)