diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2022-01-10 15:46:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 08:46:23 -0600 |
| commit | 49848a178c1ad108d311bdf904bd63aa3fd593e0 (patch) | |
| tree | 70c5aa98ded92898ab7a86cf1c990d0db06561a5 /dummyserver | |
| parent | c58dbbb35a19877a8f367c1eaa99ca43c2148f59 (diff) | |
| download | urllib3-49848a178c1ad108d311bdf904bd63aa3fd593e0.tar.gz | |
Update mypy and add NoReturn return type annotations
Diffstat (limited to 'dummyserver')
| -rw-r--r-- | dummyserver/handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py index c326c97d..c90017ed 100644 --- a/dummyserver/handlers.py +++ b/dummyserver/handlers.py @@ -8,7 +8,7 @@ import zlib from datetime import datetime, timedelta from http.client import responses from io import BytesIO -from typing import Any, Dict, Optional, Sequence, Tuple, Union +from typing import Any, Dict, NoReturn, Optional, Sequence, Tuple, Union from urllib.parse import urlsplit from tornado import httputil @@ -347,5 +347,5 @@ class TestingApp(RequestHandler): headers = [("Location", target), ("Retry-After", retry_after)] return Response(status="303 See Other", headers=headers) - def shutdown(self, request: httputil.HTTPServerRequest) -> None: + def shutdown(self, request: httputil.HTTPServerRequest) -> NoReturn: sys.exit() |
