Fix imports

This commit is contained in:
Tom Christie 2019-02-18 13:14:53 +00:00
parent 37ee43efc2
commit 5abdc2e4fb
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -11,7 +11,6 @@ from starlette.responses import (
RedirectResponse,
Response,
StreamingResponse,
TemplateResponse,
UJSONResponse,
)
from starlette.testclient import TestClient

View File

@ -1,4 +1,5 @@
import os
import pytest
from starlette.applications import Starlette