You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2022/02/02 00:34:39 UTC

[qpid-dispatch] branch main updated: DISPATCH-2321 Add mypy ignores for quart and websockets (#1508)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/main by this push:
     new eafe4b0  DISPATCH-2321 Add mypy ignores for quart and websockets (#1508)
eafe4b0 is described below

commit eafe4b05b86d4f958f0a4fa88c36fa1a3d382fdc
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Wed Feb 2 01:34:33 2022 +0100

    DISPATCH-2321 Add mypy ignores for quart and websockets (#1508)
---
 tests/http2_server.py            | 8 ++++----
 tests/system_tests_websockets.py | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/http2_server.py b/tests/http2_server.py
index 895a5a9..8d3b9bb 100644
--- a/tests/http2_server.py
+++ b/tests/http2_server.py
@@ -22,14 +22,14 @@ import system_test
 
 from quart import Quart, request
 try:
-    from quart.static import send_file
+    from quart.static import send_file  # noqa  # mypy#8823  # type: ignore[attr-defined]
 except ImportError:
-    from quart.helpers import send_file
+    from quart.helpers import send_file  # noqa  # mypy#8823  # type: ignore[attr-defined, no-redef]  # mypy#1153
 
 try:
-    from quart.exceptions import HTTPStatusException
+    from quart.exceptions import HTTPStatusException  # noqa  # mypy#8823  # type: ignore[attr-defined]
 except ImportError:
-    from werkzeug.exceptions import InternalServerError as HTTPStatusException
+    from werkzeug.exceptions import InternalServerError as HTTPStatusException  # noqa  # mypy#8823  # type: ignore[no-redef]  # mypy#1153
 
 app = Quart(__name__)
 
diff --git a/tests/system_tests_websockets.py b/tests/system_tests_websockets.py
index d9b5854..99f4fc3 100644
--- a/tests/system_tests_websockets.py
+++ b/tests/system_tests_websockets.py
@@ -23,7 +23,7 @@ import unittest
 try:
     import websockets
 except ImportError:
-    websockets = None
+    websockets = None  # noqa  # type: ignore[assignment]  # expression has type "None", variable has type Module
 
 from system_test import Qdrouterd
 from system_test import main_module, TestCase, Process

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org