Using different module for type checking and runtime #3302
Answered
by
Kludex
leifwar
asked this question in
Potential Issue
-
|
What is the reason for forcing if TYPE_CHECKING:
import httpx
else:
try:
import httpx2 as httpx
except ModuleNotFoundError: # pragma: no cover
.....This causes pyright to fail when checking code using the testclient where httpx2 is available. |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
May 30, 2026
Replies: 1 comment 1 reply
-
|
I guess it was a choice, but you have a point, since I deprecated. It slipped my mind. Would you like to open a PR to fix it? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess it was a choice, but you have a point, since I deprecated. It slipped my mind.
Would you like to open a PR to fix it?