在阅读fastapi的源代码时,这一行让我很模糊:
from starlette.testclient import TestClient as TestClient
为什么不只是:from starlette.testclient import TestClient?
from starlette.testclient import TestClient
python mypy
mypy ×1
python ×1