Fix lint.

This commit is contained in:
Itamar Turner-Trauring 2023-03-24 15:06:27 -04:00
parent 8d84e8a19f
commit 74e3e27bea

View File

@ -1,21 +1,11 @@
""" """
Ported to Python 3. Ported to Python 3.
""" """
from __future__ import absolute_import from __future__ import annotations
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import PY2
if PY2:
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
import os import os
try: from typing import Any
from typing import Any, List, Tuple
except ImportError:
pass
from twisted.trial import unittest from twisted.trial import unittest
from twisted.internet import defer, reactor from twisted.internet import defer, reactor
@ -356,8 +346,7 @@ class Config(unittest.TestCase):
self.assertIn("is not empty", err) self.assertIn("is not empty", err)
self.assertIn("To avoid clobbering anything, I am going to quit now", err) self.assertIn("To avoid clobbering anything, I am going to quit now", err)
def fake_config(testcase, module, result): def fake_config(testcase: unittest.TestCase, module: Any, result: Any) -> list[tuple]:
# type: (unittest.TestCase, Any, Any) -> List[Tuple]
""" """
Monkey-patch a fake configuration function into the given module. Monkey-patch a fake configuration function into the given module.