]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Sat, 23 Aug 2025 20:07:25 +0000 (13:07 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 23 Aug 2025 20:07:25 +0000 (13:07 -0700)
dns/_no_ssl.py
dns/name.py
dns/win32util.py
pyproject.toml

index c64f09062ccff2b2f61d9d3fbd6cca5e1b5454ae..edb452de1067441216afcc2b772eb0d5edc69485 100644 (file)
@@ -1,5 +1,5 @@
 import enum
-from typing import Any, Optional
+from typing import Any
 
 CERT_NONE = 0
 
index 7bf905081f31253bb785d4a583737182032e34fb..7b3cf1230e4e72b4034878d60d49ceed4751661d 100644 (file)
@@ -15,8 +15,7 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-"""DNS Names.
-"""
+"""DNS Names."""
 
 import copy
 import encodings.idna  # type: ignore
index 640f08cf508ebb25fb1d0df48455f45ae3563e39..28cecef881ac3c41ac47c3fbebfba9b8398981de 100644 (file)
@@ -1,15 +1,12 @@
-import os
 import sys
 
 import dns._features
-import dns.name
 
 if sys.platform == "win32":
     import ctypes
     import ctypes.wintypes as wintypes
     import winreg  # pylint: disable=import-error
     from enum import IntEnum
-    from typing import Any
 
     import dns.name
 
index 9251c3e8c16191096da35ff1d6ee92cfc7314983..472fe04e4ee2466c764fa551e9ea112a015e7679 100644 (file)
@@ -111,6 +111,10 @@ lint.ignore = [
     "B011",
     "UP006",
     "UP035",
+    # these three are about post-3.9 type syntax and should be revisited after 2.8
+    "UP045",
+    "UP007",
+    "UP038",
 ]
 lint.exclude = ["tests/*"]