From a4591447b7d6e38479bcddb14de3b69f314e7009 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 23 Aug 2025 13:07:25 -0700 Subject: [PATCH] lint --- dns/_no_ssl.py | 2 +- dns/name.py | 3 +-- dns/win32util.py | 3 --- pyproject.toml | 4 ++++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dns/_no_ssl.py b/dns/_no_ssl.py index c64f0906..edb452de 100644 --- a/dns/_no_ssl.py +++ b/dns/_no_ssl.py @@ -1,5 +1,5 @@ import enum -from typing import Any, Optional +from typing import Any CERT_NONE = 0 diff --git a/dns/name.py b/dns/name.py index 7bf90508..7b3cf123 100644 --- a/dns/name.py +++ b/dns/name.py @@ -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 diff --git a/dns/win32util.py b/dns/win32util.py index 640f08cf..28cecef8 100644 --- a/dns/win32util.py +++ b/dns/win32util.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 9251c3e8..472fe04e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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/*"] -- 2.47.3