python: Use Python 3.8 typing.{Protocol,TypedDict}.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-04-26 17:23:56 -07:00
committed by Tim Abbott
parent 098a514599
commit a2825e5984
26 changed files with 53 additions and 46 deletions

View File

@@ -28,6 +28,7 @@ from typing import (
Sequence,
Set,
Tuple,
TypedDict,
Union,
cast,
)
@@ -36,7 +37,6 @@ import orjson
import tornado.ioloop
from django.conf import settings
from django.utils.translation import gettext as _
from typing_extensions import TypedDict
from version import API_FEATURE_LEVEL, ZULIP_MERGE_BASE, ZULIP_VERSION
from zerver.lib.exceptions import JsonableError