]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
build: Run docs and lint on py38
authorBen Darnell <ben@bendarnell.com>
Sun, 3 Nov 2019 22:18:54 +0000 (17:18 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 23 Nov 2019 19:44:11 +0000 (14:44 -0500)
This requires moving some noqa comments due to 3.8's changes to the
ast module.

.travis.yml
tornado/ioloop.py
tornado/web.py
tox.ini

index d7ce8e6f74060e0ffb7fc5d0d427f41344bc131a..9bb46ffa198b00f87c78ceaae5238c3416665f9d 100644 (file)
@@ -34,9 +34,9 @@ jobs:
     - python: nightly
       env: TOX_ENV=py3-full
       # Docs and lint python versions must be synced with those in tox.ini
-    - python: '3.7'
+    - python: '3.8'
       env: TOX_ENV=docs
-    - python: '3.6'
+    - python: '3.8'
       env: TOX_ENV=lint
 
 install:
index a0598727a4e01c675ed537093f1789d2980b8c2f..2cf884450cd5c8ec4e9af12116793b84b870b796 100644 (file)
@@ -233,13 +233,13 @@ class IOLoop(Configurable):
     def current() -> "IOLoop":
         pass
 
-    @typing.overload  # noqa: F811
+    @typing.overload
     @staticmethod
-    def current(instance: bool = True) -> Optional["IOLoop"]:
+    def current(instance: bool = True) -> Optional["IOLoop"]:  # noqa: F811
         pass
 
-    @staticmethod  # noqa: F811
-    def current(instance: bool = True) -> Optional["IOLoop"]:
+    @staticmethod
+    def current(instance: bool = True) -> Optional["IOLoop"]:  # noqa: F811
         """Returns the current thread's `IOLoop`.
 
         If an `IOLoop` is currently running or has been marked as
index 3fc99fb8d6a4cccb8b59862674e74709edc07591..450f4c6505df8ed44cba7ae53c2ea8656e8b91b1 100644 (file)
@@ -424,14 +424,14 @@ class RequestHandler(object):
     def get_argument(self, name: str, default: str, strip: bool = True) -> str:
         pass
 
-    @overload  # noqa: F811
-    def get_argument(
+    @overload
+    def get_argument(  # noqa: F811
         self, name: str, default: _ArgDefaultMarker = _ARG_DEFAULT, strip: bool = True
     ) -> str:
         pass
 
-    @overload  # noqa: F811
-    def get_argument(
+    @overload
+    def get_argument(  # noqa: F811
         self, name: str, default: None, strip: bool = True
     ) -> Optional[str]:
         pass
diff --git a/tox.ini b/tox.ini
index c9e9460142ced47c64b172eb178da3863c57fbdc..a21b871923a48bd87bee19b4e0587ee84a41b6ab 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -40,8 +40,8 @@ basepython =
            # the outputs of the tools (especially where exactly the
            # linter warning-supression comments go), so we specify a
            # python version for these builds.
-           docs: python3.7
-           lint: python3.6
+           docs: python3.8
+           lint: python3.8
 
 deps =
      full: pycurl