From 3b3085652d4342bfe4b118bc816f2164e2f874e5 Mon Sep 17 00:00:00 2001
From: Correl <correl@gmail.com>
Date: Fri, 26 Feb 2021 12:04:47 -0500
Subject: [PATCH] Ignore types on tornado includes

Older versions of Tornado supported by this library lack type annotations.
---
 tests/test_handler.py       | 6 +++---
 tests/test_testing.py       | 3 ++-
 tornado_openapi3/handler.py | 2 +-
 tornado_openapi3/testing.py | 4 ++--
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/tests/test_handler.py b/tests/test_handler.py
index f58a89e..9bdf7f5 100644
--- a/tests/test_handler.py
+++ b/tests/test_handler.py
@@ -2,9 +2,9 @@ import json
 import unittest.mock
 
 from openapi_core.exceptions import OpenAPIError  # type: ignore
-import tornado.httpclient
-import tornado.web
-import tornado.testing
+import tornado.httpclient  # type: ignore
+import tornado.web  # type: ignore
+import tornado.testing  # type: ignore
 
 from tornado_openapi3.handler import OpenAPIRequestHandler
 
diff --git a/tests/test_testing.py b/tests/test_testing.py
index 9f30742..a013f91 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -1,6 +1,7 @@
 import json
+
 from openapi_core.schema.responses.exceptions import InvalidResponse  # type: ignore
-import tornado.web
+import tornado.web  # type: ignore
 
 from tornado_openapi3.handler import OpenAPIRequestHandler
 from tornado_openapi3.testing import AsyncOpenAPITestCase
diff --git a/tornado_openapi3/handler.py b/tornado_openapi3/handler.py
index cfb9581..cfd1ec4 100644
--- a/tornado_openapi3/handler.py
+++ b/tornado_openapi3/handler.py
@@ -13,7 +13,7 @@ from openapi_core.templating.paths.exceptions import (  # type: ignore
 )
 from openapi_core.unmarshalling.schemas.exceptions import ValidateError  # type: ignore
 from openapi_core.validation.exceptions import InvalidSecurity  # type: ignore
-import tornado.web
+import tornado.web  # type: ignore
 
 from tornado_openapi3.requests import RequestValidator
 
diff --git a/tornado_openapi3/testing.py b/tornado_openapi3/testing.py
index 8d3e28d..56e25d9 100644
--- a/tornado_openapi3/testing.py
+++ b/tornado_openapi3/testing.py
@@ -1,7 +1,7 @@
 from typing import Any
 
-import tornado.httpclient
-import tornado.testing
+import tornado.httpclient  # type: ignore
+import tornado.testing  # type: ignore
 
 from openapi_core import create_spec  # type: ignore
 from tornado_openapi3.responses import ResponseValidator