From f928ad22be1ce66d652c05faf07ce2000a9852f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Wed, 25 Mar 2020 15:32:41 +0200 Subject: [PATCH] These must be tuples + hack mypy warnings away. --- sanic/compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/compat.py b/sanic/compat.py index 99e0127e..a156161d 100644 --- a/sanic/compat.py +++ b/sanic/compat.py @@ -7,9 +7,9 @@ from multidict import CIMultiDict # type: ignore try: from trio import Cancelled # type: ignore - CancelledErrors = [CancelledError, Cancelled] + CancelledErrors = tuple([CancelledError, Cancelled]) except ImportError: - CancelledErrors = [CancelledError] + CancelledErrors = tuple([CancelledError]) class Header(CIMultiDict):