Ignore gnarly type check in WSGI implementation (#756)

* Ignore gnarly type check in WSGI implementation

* Linting
This commit is contained in:
Tom Christie 2019-12-17 11:14:57 +00:00 committed by GitHub
parent d2b65c3c99
commit 00e8300804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class WSGIResponder:
await run_in_threadpool(self.wsgi, environ, self.start_response)
self.send_queue.append(None)
self.send_event.set()
await asyncio.wait_for(sender, None)
await asyncio.wait_for(sender, None) # type: ignore
if self.exc_info is not None:
raise self.exc_info[0].with_traceback(
self.exc_info[1], self.exc_info[2]

View File

@ -1,12 +1,11 @@
import os
from pathlib import Path
import pytest
from starlette.config import Config, Environ, EnvironError
from starlette.datastructures import URL, Secret
from pathlib import Path
def test_config(tmpdir, monkeypatch):
path = os.path.join(tmpdir, ".env")
@ -60,6 +59,7 @@ def test_config(tmpdir, monkeypatch):
with pytest.raises(ValueError):
config.get("BOOL_AS_INT", cast=bool)
def test_environ():
environ = Environ()