Update mypy==0.740 (#151)
This commit is contained in:
parent
e14548252c
commit
1ce16b95de
|
@ -14,6 +14,7 @@ import socket
|
|||
|
||||
from types import TracebackType
|
||||
from typing import Optional, Dict, Any, List, Tuple, Type, Callable
|
||||
from typing_extensions import Literal
|
||||
|
||||
from .constants import HTTP_1_1, COLON, WHITESPACE, CRLF
|
||||
|
||||
|
@ -185,7 +186,7 @@ class socket_connection(contextlib.ContextDecorator):
|
|||
self,
|
||||
exc_type: Optional[Type[BaseException]],
|
||||
exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool:
|
||||
exc_tb: Optional[TracebackType]) -> Literal[False]:
|
||||
if self.conn:
|
||||
self.conn.close()
|
||||
return False
|
||||
|
|
|
@ -117,7 +117,7 @@ class HttpParser:
|
|||
self.host, self.port = self.url.hostname, self.url.port \
|
||||
if self.url.port else 80
|
||||
else:
|
||||
raise KeyError('Invalid request\n%s' % self.bytes)
|
||||
raise KeyError(b'Invalid request\n%b' % self.bytes)
|
||||
self.path = self.build_url()
|
||||
|
||||
def is_chunked_encoded(self) -> bool:
|
||||
|
|
|
@ -4,6 +4,6 @@ flake8==3.7.9
|
|||
pytest==5.2.2
|
||||
pytest-cov==2.8.1
|
||||
autopep8==1.4.4
|
||||
mypy==0.730
|
||||
mypy==0.740
|
||||
py-spy==0.3.0
|
||||
codecov==2.0.15
|
||||
|
|
Loading…
Reference in New Issue