File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from .connection import AsyncHTTPConnection
1414from .interfaces import AsyncConnectionInterface , AsyncRequestInterface
1515
16- try :
17- from .http2 import AsyncHTTP2Connection
18- except ImportError : # pragma: nocover
19- # ImportError happens when the user installed httpcore without the optional http2 dependency
20- AsyncHTTP2Connection = None # type: ignore[assignment, misc]
21-
2216
2317class AsyncPoolRequest :
2418 def __init__ (self , request : Request ) -> None :
Original file line number Diff line number Diff line change 1313from .connection import HTTPConnection
1414from .interfaces import ConnectionInterface , RequestInterface
1515
16- try :
17- from .http2 import HTTP2Connection
18- except ImportError : # pragma: nocover
19- # ImportError happens when the user installed httpcore without the optional http2 dependency
20- HTTP2Connection = None # type: ignore[assignment, misc]
21-
2216
2317class PoolRequest :
2418 def __init__ (self , request : Request ) -> None :
You can’t perform that action at this time.
0 commit comments