]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
add type-var ignore for the recent mypy error 3169/head
authorAnil Tuncel <anil.tuncel@epfl.ch>
Sun, 17 Jul 2022 17:36:56 +0000 (18:36 +0100)
committerAnil Tuncel <anil.tuncel@epfl.ch>
Sun, 17 Jul 2022 17:36:56 +0000 (18:36 +0100)
tornado/queues.py

index 32132e16fab33f1a148ba84a76541fcc80fbcbe6..1358d0ecf1b1f8ea0f6d33cbb121ecfb07094fa6 100644 (file)
@@ -381,7 +381,7 @@ class PriorityQueue(Queue):
     def _put(self, item: _T) -> None:
         heapq.heappush(self._queue, item)
 
-    def _get(self) -> _T:
+    def _get(self) -> _T:  # type: ignore[type-var]
         return heapq.heappop(self._queue)
 
 
@@ -418,5 +418,5 @@ class LifoQueue(Queue):
     def _put(self, item: _T) -> None:
         self._queue.append(item)
 
-    def _get(self) -> _T:
+    def _get(self) -> _T:  # type: ignore[type-var]
         return self._queue.pop()