python: Use standard NoReturn (Python ≥ 3.6).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-11 12:18:16 -07:00
committed by Tim Abbott
parent fbc96d56d5
commit ca4357fd64
7 changed files with 8 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
from enum import Enum
from typing import Any, Dict, List, Type, TypeVar, Optional
from typing_extensions import NoReturn
from typing import Any, Dict, List, NoReturn, Type, TypeVar, Optional
from django.utils.translation import ugettext as _