mirror of https://github.com/encode/starlette.git
Fix imports
This commit is contained in:
parent
37ee43efc2
commit
5abdc2e4fb
|
@ -10,6 +10,9 @@ from urllib.parse import quote_plus
|
|||
|
||||
from starlette.background import BackgroundTask
|
||||
from starlette.datastructures import URL, MutableHeaders
|
||||
# For compat with earlier versions.
|
||||
# We'll drop this with the next median release.
|
||||
from starlette.templating import _TemplateResponse as TemplateResponse
|
||||
from starlette.types import Receive, Send
|
||||
|
||||
try:
|
||||
|
@ -281,8 +284,3 @@ class FileResponse(Response):
|
|||
)
|
||||
if self.background is not None:
|
||||
await self.background()
|
||||
|
||||
|
||||
# For compat with earlier versions.
|
||||
# We'll drop this with the next median release.
|
||||
from starlette.templating import _TemplateResponse as TemplateResponse
|
||||
|
|
|
@ -11,7 +11,6 @@ from starlette.responses import (
|
|||
RedirectResponse,
|
||||
Response,
|
||||
StreamingResponse,
|
||||
TemplateResponse,
|
||||
UJSONResponse,
|
||||
)
|
||||
from starlette.testclient import TestClient
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from starlette.applications import Starlette
|
||||
|
|
Loading…
Reference in New Issue